4 ms·
> Also sqlite varint: That's not actually in use. The SQLite3 format is far more basic: "A variable-length integer or "varint" is a static Huffman encoding o
by akira2501 2y ago
> Also sqlite varint:
That's not actually in use. The SQLite3 format is far more basic:
"A variable-length integer or "varint" is a static Huffman encoding of 64-bit twos-complement integers that uses less space for small positive values. A varint is between 1 and 9 bytes in length. The varint consists of either zero or more bytes which have the high-order bit set followed by a single byte with the high-order bit clear, or nine bytes, whichever is shorter. The lower seven bits of each of the first eight bytes and all 8 bits of the ninth byte are used to reconstruct the 64-bit twos-complement integer. Varints are big-endian: bits taken from the earlier byte of the varint are more significant than bits taken from the later bytes."
From: https://www.sqlite.org/fileformat2.html https://www.sqlite.org/fileformat2.html Section 1.6