pub struct BitWriter { /* private fields */ }Expand description
MSB-first bit writer for GRIB packing templates.
Implementations§
Source§impl BitWriter
impl BitWriter
pub const fn new() -> Self
pub fn with_capacity_bits(bit_capacity: usize) -> Self
pub fn bit_len(&self) -> usize
pub fn byte_len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn write(&mut self, value: u64, bit_count: usize) -> Result<()>
pub fn align_to_byte(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BitWriter
impl RefUnwindSafe for BitWriter
impl Send for BitWriter
impl Sync for BitWriter
impl Unpin for BitWriter
impl UnsafeUnpin for BitWriter
impl UnwindSafe for BitWriter
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