Ark Server API (ASA) - Wiki
|
Go to the source code of this file.
FORCEINLINE uint32 MeasureVarInt | ( | const void * | InData | ) |
Measure the length in bytes (1-9) of an encoded variable-length integer.
Definition at line 67 of file VarInt.h.
FORCEINLINE uint32 MeasureVarInt | ( | int32 | InValue | ) |
Measure the number of bytes (1-5) required to encode the 32-bit input.
Definition at line 85 of file VarInt.h.
FORCEINLINE uint32 MeasureVarInt | ( | int64 | InValue | ) |
Measure the number of bytes (1-9) required to encode the 64-bit input.
Definition at line 91 of file VarInt.h.
FORCEINLINE uint32 MeasureVarUInt | ( | const void * | InData | ) |
Measure the length in bytes (1-9) of an encoded variable-length integer.
InData | A variable-length encoding of an (signed or unsigned) integer. |
Definition at line 61 of file VarInt.h.
FORCEINLINE uint32 MeasureVarUInt | ( | uint32 | InValue | ) |
FORCEINLINE uint32 MeasureVarUInt | ( | uint64 | InValue | ) |
FORCEINLINE int64 ReadVarInt | ( | const void * | InData, |
uint32 & | OutByteCount ) |
FORCEINLINE uint64 ReadVarUInt | ( | const void * | InData, |
uint32 & | OutByteCount ) |
Read a variable-length unsigned integer.
InData | A variable-length encoding of an unsigned integer. |
OutByteCount | The number of bytes consumed from the input. |
Definition at line 103 of file VarInt.h.
FORCEINLINE uint32 WriteVarInt | ( | int32 | InValue, |
void * | OutData ) |
Write a variable-length signed integer.
Definition at line 189 of file VarInt.h.
FORCEINLINE uint32 WriteVarInt | ( | int64 | InValue, |
void * | OutData ) |
Write a variable-length signed integer.
Definition at line 196 of file VarInt.h.
FORCEINLINE uint32 WriteVarUInt | ( | uint32 | InValue, |
void * | OutData ) |
Write a variable-length unsigned integer.
InValue | An unsigned integer to encode. |
OutData | A buffer of at least 5 bytes to write the output to. |
Definition at line 145 of file VarInt.h.
FORCEINLINE uint32 WriteVarUInt | ( | uint64 | InValue, |
void * | OutData ) |
Write a variable-length unsigned integer.
InValue | An unsigned integer to encode. |
OutData | A buffer of at least 9 bytes to write the output to. |
Definition at line 168 of file VarInt.h.