#[repr(C)]pub struct ParseContext {
pub buffer: *mut u8,
pub index: c_int,
pub last_index: c_int,
pub buffer_size: c_uint,
pub state: u32,
pub frame_start_found: c_int,
pub overread: c_int,
pub overread_index: c_int,
pub state64: u64,
}
Fields§
§buffer: *mut u8
§index: c_int
§last_index: c_int
§buffer_size: c_uint
§state: u32
< contains the last few bytes in MSB order
frame_start_found: c_int
§overread: c_int
< the number of bytes which where irreversibly read from the next frame
overread_index: c_int
< the index into ParseContext.buffer of the overread bytes
state64: u64
< contains the last 8 bytes in MSB order
Trait Implementations§
Source§impl Clone for ParseContext
impl Clone for ParseContext
Source§fn clone(&self) -> ParseContext
fn clone(&self) -> ParseContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseContext
impl Debug for ParseContext
impl Copy for ParseContext
Auto Trait Implementations§
impl Freeze for ParseContext
impl RefUnwindSafe for ParseContext
impl !Send for ParseContext
impl !Sync for ParseContext
impl Unpin for ParseContext
impl UnwindSafe for ParseContext
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