This crate aims to facilitate the extraction of bits in a small, simple crate. While it does not have as many bells and whistle as many other crates, simplicity is the key here.
Extract bits from slice of bytes:
let y: u32 = 0b00001111_11110000_01010000_00001010; let p: &[u8] = &y.to_le_bytes(); let ret: u32 = p.range_read_le(..); assert_eq!(ret, y);
A simple bit extraction definition.
A simple bit write definition.