[−][src]Trait allsorts::binary::read::ReadUnchecked
Read will always succeed if sufficient bytes are available.
Associated Types
Loading content...Associated Constants
Loading content...Required methods
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> Self::HostType
Must read exactly SIZE
bytes.
Unsafe as it avoids prohibitively expensive per-byte bounds checking.
Implementations on Foreign Types
impl<'a, T1, T2> ReadUnchecked<'a> for (T1, T2) where
T1: ReadUnchecked<'a>,
T2: ReadUnchecked<'a>,
[src]
T1: ReadUnchecked<'a>,
T2: ReadUnchecked<'a>,
type HostType = (T1::HostType, T2::HostType)
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> Self::HostType
[src]
impl<'a, T1, T2, T3> ReadUnchecked<'a> for (T1, T2, T3) where
T1: ReadUnchecked<'a>,
T2: ReadUnchecked<'a>,
T3: ReadUnchecked<'a>,
[src]
T1: ReadUnchecked<'a>,
T2: ReadUnchecked<'a>,
T3: ReadUnchecked<'a>,
type HostType = (T1::HostType, T2::HostType, T3::HostType)
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> Self::HostType
[src]
Implementors
impl<'a> ReadUnchecked<'a> for I16Be
[src]
type HostType = i16
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> i16
[src]
impl<'a> ReadUnchecked<'a> for I32Be
[src]
type HostType = i32
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> i32
[src]
impl<'a> ReadUnchecked<'a> for I64Be
[src]
type HostType = i64
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> i64
[src]
impl<'a> ReadUnchecked<'a> for I8
[src]
type HostType = i8
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> i8
[src]
impl<'a> ReadUnchecked<'a> for U16Be
[src]
type HostType = u16
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> u16
[src]
impl<'a> ReadUnchecked<'a> for U24Be
[src]
type HostType = u32
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> u32
[src]
impl<'a> ReadUnchecked<'a> for U32Be
[src]
type HostType = u32
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> u32
[src]
impl<'a> ReadUnchecked<'a> for U8
[src]
type HostType = u8
const SIZE: usize
[src]
unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> u8
[src]
impl<'a, T> ReadUnchecked<'a> for T where
T: ReadFrom<'a>,
[src]
T: ReadFrom<'a>,