Expand description
This crate provides a no_std implementation of the InterlockLedger ILInt format. This format allows the encoding of 64 bit integer values in a compact format that uses 1 to 9 bytes of space depending on the actual value. See ILInt Specification for further details about the format.
Enums§
- Error
Kind - Types of errors generated by this library.
Constants§
- ILINT_
BASE - LInt base value. All values smaller than this value are encoded as a single byte.
- ILINT_
BASE_ U64 - Value of ILINT_BASE as U64.
Functions§
- decode
- Decodes an ILInt value.
- decoded_
size - Determines the size of the ILInt based on its header (the first byte of the encoded value).
- encode
- Encodes the given value into a ILInt value.
- encoded_
size - Returns the size of the given value encoded as an ILInt.
Type Aliases§
- Result
- Alias to the Result used by this library.