pub type BitWriterCursor = BitWriter<CursorVecU8>;Expand description
- The specialized
BitWriterthat usesCursorVecU8>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
impl BitWriterCursor
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
- Get the inner byte array and consumes the writer.