[−][src]Module terminus_store::structure::vbyte
A variable-byte encoding implementation for u64
.
The canonical reference for this variable-byte encoding technique appears to be:
Hugh E. Williams and Justin Zobel. Compressing integers for fast file access. The Computer Journal, 42:193–201, 1999.
There are a number of different implementations for variable-byte encoding. This particular implementation follows the reference Java implementation for the RDF HDT project. Another popular implementation is the one for Google's Protocol Buffers; however, that differs on where the most significant bit (msb) is set and cleared.
Enums
DecodeError | An error returned by |
Constants
MAX_ENCODING_LEN | The maximum number of bytes required for any |
Functions
decode | Decodes a |
encode_slice | Encodes a |
encode_vec | Encodes a |
encoding_len | Returns the number of bytes required for a |
write_async | Encodes a |