logo
pub trait ReadUnchecked<'a> {
    type HostType: Sized;

    const SIZE: usize;

    unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> Self::HostType;
}
Expand description

Read will always succeed if sufficient bytes are available.

Required Associated Types

Required Associated Constants

The number of bytes consumed by read_unchecked.

Required Methods

Must read exactly SIZE bytes. Unsafe as it avoids prohibitively expensive per-byte bounds checking.

Implementations on Foreign Types

Implementors