Type Alias BitWriterCursor

Source
pub type BitWriterCursor = BitWriter<CursorVecU8>;
Expand description
  • The specialized BitWriter that uses CursorVecU8> as its sink.

Aliased Type§

pub struct BitWriterCursor {
    pub endbit: i32,
    pub total_bits: usize,
    pub writer: CursorVecU8,
    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: CursorVecU8
  • The sink
§cache: CursorVecU8
  • The cache that holds data to be flushed

Implementations§

Source§

impl BitWriterCursor

Source

pub fn into_bytes(self) -> Vec<u8>

  • Get the inner byte array and consumes the writer.