Skip to main content

Crate vbyte

Crate vbyte 

Source

Modules§

utils

Functions§

compress
Encodes val as a variable-length byte vector.
compress_list
Encodes a slice of integers into a contiguous byte buffer.
decompress
Decodes one value from the front of data.
decompress_list
Decodes all values from data until the buffer is exhausted.
decompress_n
Decodes exactly N values from data, returning the remainder.
write_number
Encodes val into buffer using variable-byte encoding.