Struct av_bitstream::bitread::BitReadBE
source · [−]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
sourceimpl<'a> BitRead<'a> for BitReadBE<'a>
impl<'a> BitRead<'a> for BitReadBE<'a>
sourcefn new(buffer: &'a [u8]) -> BitReadBE<'a>
fn new(buffer: &'a [u8]) -> BitReadBE<'a>
Creates a new bitreader with an internal buffer associated to it.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn align_bits(&mut self)
fn align_bits(&mut self)
Aligns the bits present in the internal buffer.
sourceimpl<'a> BitReadEndian for BitReadBE<'a>
impl<'a> BitReadEndian for BitReadBE<'a>
sourceimpl<'a> BitReadFill for BitReadBE<'a>
impl<'a> BitReadFill for BitReadBE<'a>
sourceimpl<'a> BitReadInternal for BitReadBE<'a>
impl<'a> BitReadInternal for BitReadBE<'a>
impl<'a> Copy for BitReadBE<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, S, B> CodebookReader<S> for B where
S: Copy,
B: BitRead<'a>,
impl<'a, S, B> CodebookReader<S> for B where
S: Copy,
B: BitRead<'a>,
sourcefn read_cb(&mut self, cb: &Codebook<S>) -> Result<S, CodebookError>
fn read_cb(&mut self, cb: &Codebook<S>) -> Result<S, CodebookError>
Reads the codeword from a bitstream and returns its value.