pub struct Reader { /* private fields */ }
Expand description
Reader for parsing mp4 files.
Implementations§
Source§impl Reader
impl Reader
pub fn new(data: &[u8], little_endian: bool) -> Self
pub fn has_more_data(&self) -> bool
pub fn get_length(&self) -> u64
pub fn get_position(&self) -> u64
pub fn read_u8(&mut self) -> Result<u8>
pub fn read_u16(&mut self) -> Result<u16>
pub fn read_i32(&mut self) -> Result<i32>
pub fn read_u32(&mut self) -> Result<u32>
pub fn read_u64(&mut self) -> Result<u64>
pub fn read_bytes_u8(&mut self, bytes: usize) -> Result<Vec<u8>>
pub fn read_bytes_u16(&mut self, bytes: usize) -> Result<Vec<u16>>
pub fn skip(&mut self, bytes: u64) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reader
impl RefUnwindSafe for Reader
impl Send for Reader
impl Sync for Reader
impl Unpin for Reader
impl UnwindSafe for Reader
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