Skip to main content

write_bits

Function write_bits 

Source
pub fn write_bits(
    buf: &mut [u8],
    bit_pos: usize,
    width: u8,
    value: u64,
) -> Result<(), BitsError>
Expand description

Write the low width bits of value into buf starting at bit bit_pos.