pub(crate) struct BitReaderSlice<'a> {
pub val: u64,
pub avail_bits: u32,
pub rem: &'a [u8],
}Fields§
§val: u64§avail_bits: u32§rem: &'a [u8]Implementations§
Source§impl<'a> BitReaderSlice<'a>
impl<'a> BitReaderSlice<'a>
pub fn new(br: &BrotliBitReader, input: &'a [u8]) -> Option<Self>
pub fn empty() -> Self
pub fn sync_to(self, br: &mut BrotliBitReader)
pub fn has_input(&self) -> bool
pub fn avail_in(&self) -> u32
pub fn fill16(&mut self)
pub fn fill_short(&mut self)
pub fn fill16_checked(&mut self) -> bool
pub fn fill32(&mut self)
pub fn drop_bits(&mut self, n_bits: u32)
pub fn take_bits(&mut self, n_bits: u32) -> u32
pub fn read_bits(&mut self, n_bits: u32) -> u32
Trait Implementations§
Source§impl<'a> Clone for BitReaderSlice<'a>
impl<'a> Clone for BitReaderSlice<'a>
Source§fn clone(&self) -> BitReaderSlice<'a>
fn clone(&self) -> BitReaderSlice<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for BitReaderSlice<'a>
Auto Trait Implementations§
impl<'a> Freeze for BitReaderSlice<'a>
impl<'a> RefUnwindSafe for BitReaderSlice<'a>
impl<'a> Send for BitReaderSlice<'a>
impl<'a> Sync for BitReaderSlice<'a>
impl<'a> Unpin for BitReaderSlice<'a>
impl<'a> UnsafeUnpin for BitReaderSlice<'a>
impl<'a> UnwindSafe for BitReaderSlice<'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