pub struct BitReadBE<'a> { /* private fields */ }
Expand description
A big-endian reader.
It contains the data structures necessary to create a big-endian reader.
Trait Implementations§
Source§impl<'a> BitRead<'a> for BitReadBE<'a>
impl<'a> BitRead<'a> for BitReadBE<'a>
Source§fn new(buffer: &'a [u8]) -> BitReadBE<'a>
fn new(buffer: &'a [u8]) -> BitReadBE<'a>
Creates a new bitreader with an internal buffer associated to it.
Source§fn get_bits_64(&mut self, n: usize) -> u64
fn get_bits_64(&mut self, n: usize) -> u64
Returns n bits from the internal buffer as a 64-bit sequence.
Source§fn get_bits_32(&mut self, n: usize) -> u32
fn get_bits_32(&mut self, n: usize) -> u32
Returns n bits from the internal buffer as a 32-bit sequence.
Source§fn peek_bits_32(&mut self, n: usize) -> u32
fn peek_bits_32(&mut self, n: usize) -> u32
Peeks the next 32-bit sequence present in the internal buffer.
Source§fn peek_bits_64(&self, n: usize) -> u64
fn peek_bits_64(&self, n: usize) -> u64
Peeks the next 64-bit sequence present in the internal buffer.
Source§fn align_bits(&mut self)
fn align_bits(&mut self)
Aligns the bits present in the internal buffer.
Source§impl<'a> BitReadEndian for BitReadBE<'a>
impl<'a> BitReadEndian for BitReadBE<'a>
Source§impl<'a> BitReadFill for BitReadBE<'a>
impl<'a> BitReadFill for BitReadBE<'a>
Source§impl<'a> BitReadInternal for BitReadBE<'a>
impl<'a> BitReadInternal for BitReadBE<'a>
impl<'a> Copy for BitReadBE<'a>
Auto Trait Implementations§
impl<'a> Freeze for BitReadBE<'a>
impl<'a> RefUnwindSafe for BitReadBE<'a>
impl<'a> Send for BitReadBE<'a>
impl<'a> Sync for BitReadBE<'a>
impl<'a> Unpin for BitReadBE<'a>
impl<'a> UnwindSafe for BitReadBE<'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