Module dyn_int

Source
Expand description

Plabble dynamic integer

Functionsยง

decode
Decodes a number from a slice of bytes.
encode
Encodes a number into a vector of bytes.
encoded_size
Gives encoded size in bytes
read_from_slice
Decodes a number from a slice of bytes when size of encoded number is unknown, returning the number and the number of bytes read.