Message.GetVarLong Method
Namespace: Riptide
Assembly: RiptideNetworking.dll
GetVarLong()
Retrieves a positive or negative number from the message, using fewer bits for smaller values.
public long GetVarLong()
Returns
long | The value that was retrieved. |
Remarks
The value is retrieved in segments of 8 bits, 1 of which is used to indicate whether or not another segment follows. As a result, small values are retrieved from the message using fewer bits, while large values will require a few more bits than they would if they were retrieved via GetByte(), GetUShort(), GetUInt(), or GetULong() (or their signed counterparts).