Module musli_binary_common::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
A variable-length 7-bit encoder where each bit indicates if there is a continuation of the sequence or not.
Generic zigzag encoding for integers.
Enums
Defines big-endian serialization.
Defines little-endian serialization.
Traits
Trait governing byte orders.
Helper trait for performing I/O over Unsigned types.
Trait that encodes common behaviors of signed numbers.
Trait that encodes common behaviors of unsigned numbers.
Type Definitions
Defines system native-endian byte order.
Defines the network byte order, which is the same as BigEndian.