Type Alias BitSlice

Source
pub type BitSlice<O = u8> = BitSlice<O, Msb0>;

Aliased Type§

struct BitSlice<O = u8> { /* private fields */ }

Trait Implementations§

Source§

impl BitRead for &BitSlice

Source§

fn read_bits(&mut self, dest: &mut BitSlice) -> Result<usize>

Pull some bits from this source into the specified buffer, returning how many bytes were read.
Source§

fn read_bits_exact(&mut self, dest: &mut BitSlice) -> Result<()>

Read the exact number of bits required to fill buf.
Source§

impl<S: BitStore> BitWrite for &mut BitSlice<S>

Source§

fn write_bits<O: BitStore>(&mut self, source: &BitSlice<O>) -> Result<usize>

Write a buffer into this writer, returning how many bytes were written.
Source§

fn write_all_bits<O: BitStore>(&mut self, source: &BitSlice<O>) -> Result<()>

Write the entirety buf into self.