Module varint

Module varint 

Source
Expand description

Monero’s VarInt type, frequently used to encode integers expected to be of low norm.

This corresponds to https://github.com/monero-project/monero/blob/8e9ab9677f90492bca3c7555a246f2a8677bd570 /src/common/varint.h.

Modules§

sealed 🔒

Constants§

VARINT_CONTINUATION_FLAG 🔒
VARINT_VALUE_MASK 🔒

Traits§

VarInt
A trait for a number readable/writable as a VarInt.

Functions§

upper_bound 🔒
Compute the upper bound for the encoded length of a integer type as a VarInt.