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.
Types of errors generated by this library.
LInt base value. All values smaller than this value are encoded as a single byte.
Value of ILINT_BASE as U64.
Decodes an ILInt value.
Determines the size of the ILInt based on its header (the first byte of the encoded value).
Encodes the given value into a ILInt value.
Returns the size of the given value encoded as an ILInt.
Alias to the Result used by this library.