Skip to main content

Crate vunsigned_varint

Crate vunsigned_varint 

Source
Expand description

no_std compatible implementation of the unsigned-varint Format

§Features

FeatureDescription
stdAllows Error to be converted to std::io::Error

Enums§

Error
Errors that can occur decoding an unsigned varint.

Functions§

decode
Decodes an unsigned integer from a given buffer, returning the integer and the amount of bytes read.
encode
Encode a unsigned integer into an unsigned varint and write it into the buffer. Returns the number of bytes written.
encoded_len
Get the number of bytes needed to encode num