[−][src]Struct allsorts::binary::read::ReadCtxt
Methods
impl<'a> ReadCtxt<'a>
[src]
pub fn check(&self, cond: bool) -> Result<(), ParseError>
[src]
pub fn scope(&self) -> ReadScope<'a>
[src]
pub fn read<T: ReadBinaryDep<'a, Args = ()>>(
&mut self
) -> Result<T::HostType, ParseError>
[src]
&mut self
) -> Result<T::HostType, ParseError>
pub fn read_dep<T: ReadBinaryDep<'a>>(
&mut self,
args: T::Args
) -> Result<T::HostType, ParseError>
[src]
&mut self,
args: T::Args
) -> Result<T::HostType, ParseError>
pub fn bytes_available(&self) -> bool
[src]
pub fn read_u8(&mut self) -> Result<u8, ReadEof>
[src]
pub fn read_i8(&mut self) -> Result<i8, ReadEof>
[src]
pub fn read_u16be(&mut self) -> Result<u16, ReadEof>
[src]
pub fn read_i16be(&mut self) -> Result<i16, ReadEof>
[src]
pub fn read_u32be(&mut self) -> Result<u32, ReadEof>
[src]
pub fn read_i32be(&mut self) -> Result<i32, ReadEof>
[src]
pub fn read_u64be(&mut self) -> Result<u64, ReadEof>
[src]
pub fn read_i64be(&mut self) -> Result<i64, ReadEof>
[src]
pub fn read_array<T: ReadUnchecked<'a>>(
&mut self,
length: usize
) -> Result<ReadArray<'a, T>, ParseError>
[src]
&mut self,
length: usize
) -> Result<ReadArray<'a, T>, ParseError>
pub fn read_array_upto_hack<T: ReadUnchecked<'a>>(
&mut self,
length: usize
) -> Result<ReadArray<'a, T>, ParseError>
[src]
&mut self,
length: usize
) -> Result<ReadArray<'a, T>, ParseError>
pub fn read_until_nibble(&mut self, nibble: u8) -> Result<&'a [u8], ReadEof>
[src]
Read up to and including the supplied nibble.
pub fn read_array_dep<T: ReadFixedSizeDep<'a>>(
&mut self,
length: usize,
args: T::Args
) -> Result<ReadArray<'a, T>, ParseError>
[src]
&mut self,
length: usize,
args: T::Args
) -> Result<ReadArray<'a, T>, ParseError>
pub fn read_scope(&mut self, length: usize) -> Result<ReadScope<'a>, ReadEof>
[src]
pub fn read_slice(&mut self, length: usize) -> Result<&'a [u8], ReadEof>
[src]
Trait Implementations
Auto Trait Implementations
impl<'a> Send for ReadCtxt<'a>
impl<'a> Sync for ReadCtxt<'a>
impl<'a> Unpin for ReadCtxt<'a>
impl<'a> UnwindSafe for ReadCtxt<'a>
impl<'a> RefUnwindSafe for ReadCtxt<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,