Module int

Source
Expand description

Traits and utilities for dealing with integers.

In particular the Signed and Unsigned traits are defined in here which allows for musli to work over signed and unsigned numbers generically.

We also have a 7-bit continuation encoding, and zigzag encoding which are based on these.

Modules§

continuation
A variable-length 7-bit encoder where each bit indicates if there is a continuation of the sequence or not.
zigzag
Generic zigzag encoding for integers.

Enums§

BigEndian
Defines big-endian serialization.
LittleEndian
Defines little-endian serialization.

Traits§

ByteOrder
Trait governing byte orders.
ByteOrderIo
Helper trait for performing I/O over Unsigned types.
Signed
Trait that encodes common behaviors of signed numbers.
Unsigned
Trait that encodes common behaviors of unsigned numbers.

Type Aliases§

NativeEndian
Defines system native-endian byte order.
NetworkEndian
Defines the network byte order, which is the same as BigEndian.