Expand description
This module contains convenience functions for manipulating Vec
Enums
Functions
Append a single bit from a u8 (0 or 1) to a Vec
Append a u8 to a Vec
Append a u16 to a Vec
Append a u32 to a Vec
Append n bits from a u64 to a Vec
Convert a slice of bits to a Vec of u8s, least-significant-bit first.
Convert a single byte to a Vec of bool.
Convert a slice of u8 to a Vec of bool, least-significant-bit first.
Reads exactly n
bits; returns an error if n>bytes.len()*8.
Extract the next bit as a u8.
Extract the next 8 bits as a u8.
Extract the next 16 bits as a u16.
Extract the next 32 bits as a u32.
Extracts the next n bits as a u64, least significant bit first, with any higher order bits set to 0. Returns the extracted word and any remaining bits.