Struct Frame
Value representation of a Frame
public readonly struct Frame : IComparable<Frame>, IComparable<int>, IEquatable<int>, IUtf8SpanFormattable, IFormattable, IComparisonOperators<Frame, Frame, bool>, IEqualityOperators<Frame, Frame, bool>, IAdditionOperators<Frame, Frame, Frame>, ISubtractionOperators<Frame, Frame, Frame>, IIncrementOperators<Frame>, IDecrementOperators<Frame>, IComparisonOperators<Frame, int, bool>, IEqualityOperators<Frame, int, bool>, IModulusOperators<Frame, int, Frame>, IAdditionOperators<Frame, int, Frame>, ISubtractionOperators<Frame, int, Frame>, IAdditionOperators<Frame, FrameSpan, FrameSpan>, IEquatable<Frame>
- Implements
- Inherited Members
Constructors
Frame(int)
Initialize new Frame for frame number
.
public Frame(int number)
Parameters
number
int
Fields
MaxValue
Returns max frame value
public static readonly Frame MaxValue
Field Value
Null
Return Null frame value
public static readonly Frame Null
Field Value
Number
public readonly int Number
Field Value
One
Return frame value 1
public static readonly Frame One
Field Value
Zero
Return frame value 0
public static readonly Frame Zero
Field Value
Properties
IsNotNull
Returns true if the current frame is not a null frame
public bool IsNotNull { get; }
Property Value
IsNull
Returns true if the current frame is a null frame
public bool IsNull { get; }
Property Value
Methods
Abs(in Frame)
Returns the absolute value of a Frame.
public static Frame Abs(in Frame frame)
Parameters
frame
Frame
Returns
Clamp(in Frame, in Frame, in Frame)
Clamps frame value to a range
public static Frame Clamp(in Frame frame, in Frame min, in Frame max)
Parameters
Returns
Clamp(in Frame, int, int)
Clamps frame value to a range
public static Frame Clamp(in Frame frame, int min, int max)
Parameters
Returns
CompareTo(Frame)
public int CompareTo(Frame other)
Parameters
other
Frame
Returns
CompareTo(int)
public int CompareTo(int other)
Parameters
other
int
Returns
Equals(Frame)
public bool Equals(Frame other)
Parameters
other
Frame
Returns
Equals(int)
public bool Equals(int other)
Parameters
other
int
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Max(in Frame, in Frame)
Returns the larger of two Frame.
public static Frame Max(in Frame left, in Frame right)
Parameters
Returns
Min(in Frame, in Frame)
Returns the smaller of two Frame.
public static Frame Min(in Frame left, in Frame right)
Parameters
Returns
Next()
Returns the next frame for the current Frame value.
public Frame Next()
Returns
Previous()
Returns the previous frame for the current Frame value.
public Frame Previous()
Returns
ToString()
public override string ToString()
Returns
ToString(string?, IFormatProvider?)
public string ToString(string? format, IFormatProvider? formatProvider)
Parameters
format
stringformatProvider
IFormatProvider
Returns
TryFormat(Span<byte>, out int, ReadOnlySpan<char>, IFormatProvider?)
public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider)
Parameters
utf8Destination
Span<byte>bytesWritten
intformat
ReadOnlySpan<char>provider
IFormatProvider
Returns
Operators
explicit operator int(Frame)
public static explicit operator int(Frame frame)
Parameters
frame
Frame
Returns
explicit operator Frame(int)
Initialize new Frame for frame number
.
public static explicit operator Frame(int frame)
Parameters
frame
int
Returns
Explicit Interface Implementations
operator +(Frame, Frame)
static Frame operator +(Frame left, Frame right)
Parameters
Returns
operator +(Frame, FrameSpan)
static FrameSpan operator +(Frame left, FrameSpan right)
Parameters
Returns
operator +(Frame, int)
static Frame operator +(Frame a, int b)
Parameters
Returns
operator --(Frame)
static Frame operator --(Frame value)
Parameters
value
Frame
Returns
operator ==(Frame, Frame)
static bool operator ==(Frame left, Frame right)
Parameters
Returns
operator ==(Frame, int)
static bool operator ==(Frame left, int right)
Parameters
Returns
operator >(Frame, Frame)
static bool operator >(Frame left, Frame right)
Parameters
Returns
operator >(Frame, int)
static bool operator >(Frame left, int right)
Parameters
Returns
operator >=(Frame, Frame)
static bool operator >=(Frame left, Frame right)
Parameters
Returns
operator >=(Frame, int)
static bool operator >=(Frame left, int right)
Parameters
Returns
operator ++(Frame)
static Frame operator ++(Frame value)
Parameters
value
Frame
Returns
operator !=(Frame, Frame)
static bool operator !=(Frame left, Frame right)
Parameters
Returns
operator !=(Frame, int)
static bool operator !=(Frame left, int right)
Parameters
Returns
operator <(Frame, Frame)
static bool operator <(Frame left, Frame right)
Parameters
Returns
operator <(Frame, int)
static bool operator <(Frame left, int right)
Parameters
Returns
operator <=(Frame, Frame)
static bool operator <=(Frame left, Frame right)
Parameters
Returns
operator <=(Frame, int)
static bool operator <=(Frame left, int right)
Parameters
Returns
operator %(Frame, int)
static Frame operator %(Frame left, int right)
Parameters
Returns
operator -(Frame, Frame)
static Frame operator -(Frame left, Frame right)
Parameters
Returns
operator -(Frame, int)
static Frame operator -(Frame a, int b)