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