Struct ogg_magic::ogg_vorbis_page::BitStreamReader
source · pub struct BitStreamReader { /* private fields */ }Implementations§
source§impl BitStreamReader
impl BitStreamReader
sourcepub fn new(data: Vec<u8>, offset: usize) -> Self
pub fn new(data: Vec<u8>, offset: usize) -> Self
Creates a new BitStreamReader with the given data and offset.
sourcepub fn read_uint_n(&mut self, x: usize) -> u32
pub fn read_uint_n(&mut self, x: usize) -> u32
Reads an unsigned integer of x bits from the stream.
pub fn read_uint2(&mut self) -> u8
pub fn read_uint3(&mut self) -> u8
pub fn read_uint4(&mut self) -> u8
pub fn read_uint5(&mut self) -> u8
pub fn read_uint6(&mut self) -> u8
pub fn read_uint8(&mut self) -> u8
pub fn read_uint16(&mut self) -> u16
pub fn read_uint24(&mut self) -> u32
pub fn read_uint32(&mut self) -> u32
Auto Trait Implementations§
impl Freeze for BitStreamReader
impl RefUnwindSafe for BitStreamReader
impl Send for BitStreamReader
impl Sync for BitStreamReader
impl Unpin for BitStreamReader
impl UnwindSafe for BitStreamReader
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