Class VarUIntExtensions
Namespace: ReadyM.Api.Serialization
Assembly: ReadyM.Api.dll
Writes and reads a uint in the compact VarUInt encoding.
public static class VarUIntExtensions
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
GetVarUInt(NetDataReader)
Throws InvalidDataException for more than five bytes, more than 32 bits, or a stream that ends first.
public static uint GetVarUInt(this NetDataReader reader)
Parameters
reader NetDataReader
Returns
PutVarUInt(NetDataWriter, uint)
Writes value in as few bytes as it needs.
public static void PutVarUInt(this NetDataWriter writer, uint value)
Parameters
writer NetDataWriter
value uint