Crate sqlite_varint

Source
Expand description

§SQLite Varint

Utility functions for dealing with SQLite varints.

Functions§

read_varint
Reads a slice of bytes from the start assuming it is a varint. Gives back the varint as i64 and the amount of bytes the varint was big.
read_varint_byte_length
Read how long the varint would be in amount of bytes.
serialize_to_varint
Serializes an i64 to a variable length byte representation.