Module tari_utilities::bit
source · Expand description
Functions for conversion between integer and bit array.
Functions
- Converts a single input byte to 8 bits (little-endian).
- Converts a vector of input bytes to a vector of bits
- Converts a vector of input bits (little-endian) to its integer representation Returns None if the length of
bits
is greater than the number of bits in ausize
, which would cause an attempt to shift left with overflow