Struct VarUShort
Namespace: ReadyM.Api.Serialization
Assembly: ReadyM.Api.dll
Variable-length unsigned short. Most significant bit of each byte is used as a continuation flag. The remaining 7 bits are used to store the value.
public struct VarUShort : INetSerializable, IEquatable<VarUShort>
Implements
INetSerializable, IEquatable<VarUShort>
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
VarUShort(ushort)
Variable-length unsigned short. Most significant bit of each byte is used as a continuation flag. The remaining 7 bits are used to store the value.
public VarUShort(ushort value)
Parameters
value ushort
Fields
MaxSize
public const int MaxSize = 3
Field Value
Properties
Value
public readonly ushort Value { get; }
Property Value
Methods
Equals(VarUShort)
public bool Equals(VarUShort other)
Parameters
other VarUShort
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj object?
Returns
GetHashCode()
public override int GetHashCode()
Returns
SizeOf(ushort)
How many bytes the value takes on the wire.
public static int SizeOf(ushort value)
Parameters
value ushort
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(VarUShort, VarUShort)
public static bool operator ==(VarUShort left, VarUShort right)
Parameters
left VarUShort
right VarUShort
Returns
implicit operator ushort(VarUShort)
public static implicit operator ushort(VarUShort value)
Parameters
value VarUShort
Returns
implicit operator VarUShort(ushort)
public static implicit operator VarUShort(ushort value)
Parameters
value ushort
Returns
operator !=(VarUShort, VarUShort)
public static bool operator !=(VarUShort left, VarUShort right)
Parameters
left VarUShort
right VarUShort