Module il2_iltags::ilint[][src]

Expand description

This module contains the implementation of the IL2 ILInt standard as defined in ILInt Specification

This code is based on the IL2 ILInt implementation for Rust found at InterlockLedger ILInt for Rust. This version does not share the same interface of the original library and thus is not compatible with it.

Enums

Error codes generated by this module.

Constants

LInt base value. All values smaller than this value are encoded as a single byte.

Value of ILINT_BASE as U64.

Functions

Decodes an ILInt value.

Decodes the body of a multi-byte ILInt. This function is usefull if the header was already used to determine the size of the body.

Decodes an ILInt from a byte slice.

Decodes an unsigned value into a signed value.

Determines the size of the ILInt based on its header (the first byte).

Encodes the given value into a ILInt value.

Encodes a signed value into an unsiged value suitable to be encoded as ILInt.

Returns the size of the given value encoded as an ILInt.

Decodes a signed ILInt value.

Encodes the given signed value into a ILInt value.

Returns the size of the given signed value encoded as an ILInt.

Type Definitions

A specialized std::result::Result generated by functions and methods from this package.