dlib.coding.varint

Variable-sized integer type

Members

Functions

decodeVarint
ulong decodeVarint(Varint vint)

Decode Varing to fixed-size integer

encodeVarint
Varint encodeVarint(ulong n)

Encode a fixed-size integer to Varint

getVarintSize
size_t getVarintSize(ulong n)

Returns size in bytes necessary to store an integer

Structs

Varint
struct Varint

Protobuf-style variable-sized integer

Meta

Authors

Timur Gafarov