encodeVarint
private fn
size_t encodeVarint(uint value, ubyte[] output)Encode a value as a little-endian varint.
Varints consist of a series of bytes where the lower 7 bits are data and the upper bit is set if there are more bytes to read.
Parameters
value | The value to encode. |
output | Output buffer to write to. |
Returns
Number of bytes written.