[−][src]Crate il2_ilint
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
ErrorKind | 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 Definitions
Result | Alias to the Result used by this library. |