Message.AddVarULong Method
Namespace: Riptide
Assembly: RiptideNetworking.dll
AddVarULong(ulong)
Adds a positive number to the message, using fewer bits for smaller values.
public Message AddVarULong(ulong value)
Parameters
ulong | value |
The value to add. |
Returns
Message | The message that the value was added to. |
Remarks
The value is added in segments of 8 bits, 1 of which is used to indicate whether or not another segment follows. As a result, small values are added to the message using fewer bits, while large values will require a few more bits than they would if they were added via AddByte(byte), AddUShort(ushort), AddUInt(uint), or AddULong(ulong) (or their signed counterparts).