pub struct BitReader<'a> { /* private fields */ }
Implementations§
Source§impl<'a> BitReader<'a>
impl<'a> BitReader<'a>
pub fn new(data: &'a [u8]) -> Self
pub fn position(&self) -> (usize, u8)
pub fn seek(&mut self, byte_pos: usize, bit_pos: u8) -> Result<()>
pub fn available_bits(&self) -> usize
pub fn read_bit(&mut self) -> Result<bool>
pub fn read_bits(&mut self, n: u32) -> Result<u32>
pub fn read_flag(&mut self) -> Result<bool>
pub fn read_u8(&mut self) -> Result<u8>
pub fn read_u16(&mut self) -> Result<u16>
pub fn peek_bits(&mut self, n: u32) -> Result<u32>
pub fn skip_bits(&mut self, n: u32) -> Result<()>
pub fn byte_aligned(&self) -> bool
pub fn align_to_byte(&mut self)
pub fn more_rbsp_data(&self) -> bool
pub fn rbsp_trailing_bits(&mut self) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for BitReader<'a>
impl<'a> RefUnwindSafe for BitReader<'a>
impl<'a> Send for BitReader<'a>
impl<'a> Sync for BitReader<'a>
impl<'a> Unpin for BitReader<'a>
impl<'a> UnwindSafe for BitReader<'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