pub struct FseBitWriter { /* private fields */ }Expand description
Optimized FSE bitstream writer.
Uses a 64-bit buffer for efficient bit packing with minimal flushes.
Implementations§
Source§impl FseBitWriter
impl FseBitWriter
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a new bit writer with specified capacity.
Sourcepub fn write_bits(&mut self, value: u32, num_bits: u8)
pub fn write_bits(&mut self, value: u32, num_bits: u8)
Write bits to the stream.
Uses a 64-bit accumulator to minimize flush operations.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Get the accumulated bits without finishing.
Trait Implementations§
Source§impl Debug for FseBitWriter
impl Debug for FseBitWriter
Auto Trait Implementations§
impl Freeze for FseBitWriter
impl RefUnwindSafe for FseBitWriter
impl Send for FseBitWriter
impl Sync for FseBitWriter
impl Unpin for FseBitWriter
impl UnwindSafe for FseBitWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more