Type Alias BitWriterObj

Source
pub type BitWriterObj = BitWriter<Box<dyn Writer>>;
Expand description
  • The specialized BitWriter that uses Box<dyn Writer> as its sink.

Aliased Type§

pub struct BitWriterObj {
    pub endbit: i32,
    pub total_bits: usize,
    pub writer: Box<dyn Writer>,
    pub cache: CursorVecU8,
}

Fields§

§endbit: i32
  • Currently ends at which bit in the last byte
§total_bits: usize
  • How many bits did we wrote in total
§writer: Box<dyn Writer>
  • The sink
§cache: CursorVecU8
  • The cache that holds data to be flushed