Module bits

Source
Expand description

Dibits, tribits, and hexbits.

Structs§

Dibit
Two bits.
DibitByteParams
Parameters for DibitBytes iterator.
DibitParams
Parameters for Dibits iterator.
Hexbit
Six bits.
HexbitByteParams
Parameters for HexbitBytes iterator.
HexbitParams
Parameters for Hexbits iterator.
SubByteIter
An iterator for sub-byte (bit-level) values.
Tribit
Three bits.
TribitByteParams
Parameters for TribitBytes iterator.
TribitParams
Parameters for Tribits iterator.

Traits§

IterParams

Type Aliases§

DibitBytes
Groups dibits into full bytes. The source must be a multiple of 4 dibits.
Dibits
Iterate over the 2-bit symbols of a byte source, MSB to LSB.
HexbitBytes
Groups hexbits into full bytes. The source must be a multiple of 6 hexbits.
Hexbits
Iterates over the 6-bit symbols of a byte source, MSB to LSB. The source must be a multiple of 3 bytes.
TribitBytes
Groups tribits into full bytes. The source must be a multiple of 8 tribits.
Tribits
Iterates over the 3-bit symbols of a byte source, MSB to LSB. The source must be a multiple of 3 bytes.