[][src]Module tree_buf::internal::varint

Functions

decode_prefix_varint
decode_suffix_varint

Because this reads backwards, beware that the offset will end up at std::usize::MAX if the first byte is read past.

encode_prefix_varint
encode_suffix_varint

This is much like prefix varint, but with the tag bits in the last byte. Useful for reading backwards.