Module linkedbytes

Source
Expand description

The Linked Bytes format, capable of storing arbitrarily large unsigned integers, also used to efficently store Unicode strings.

If you only want non-negative integers, you should stick to this format. (Signed LB integers are also planned.) Otherwise, use either Head Byte or Extended Head Byte.

Re-exports§

pub use lbstring::LBString;

Modules§

lbstring
A Unicode string format implemented using Linked Bytes.

Structs§

InvalidLBSequence
Marker error type representing that the decoder has encountered an invalid Linked Bytes sequence, created by the TryFrom implementation of LBNum.
LBNum
A number in the Linked Bytes format, capable of storing arbitrarily large non-negative integers.
LBNumRef
A borrowed Linked Bytes number, providing access to the data as a number while not owning it.
LBSequence
An owned unchecked Linked Bytes sequence, used for storing either strings or numbers.
LinkedByte
An element in a series of Linked Bytes.

Type Aliases§

DecodeResult
The Result specialization for the methods converting iterators/arrays of bytes into instances of LBNum.