pub struct BitBufferRead<'a> { /* private fields */ }Expand description
Bit-level reader with JPEG 2000 0xFF byte-unstuffing.
Reads from a byte slice, automatically handling the rule that after a 0xFF byte the MSB of the next byte is ignored (stuffed).
Implementations§
Source§impl<'a> BitBufferRead<'a>
impl<'a> BitBufferRead<'a>
Sourcepub fn available_bits(&self) -> u32
pub fn available_bits(&self) -> u32
Returns the number of valid bits currently in the buffer.
Sourcepub fn is_unstuffing(&self) -> bool
pub fn is_unstuffing(&self) -> bool
Returns true if the previous byte read was 0xFF.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BitBufferRead<'a>
impl<'a> RefUnwindSafe for BitBufferRead<'a>
impl<'a> Send for BitBufferRead<'a>
impl<'a> Sync for BitBufferRead<'a>
impl<'a> Unpin for BitBufferRead<'a>
impl<'a> UnsafeUnpin for BitBufferRead<'a>
impl<'a> UnwindSafe for BitBufferRead<'a>
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