Trait from_bytes::StructFromBytes[][src]

pub trait StructFromBytes<T: PackedSize = Self>: PackedSize {
    fn from_bytes(slice: &[u8], offset: usize) -> Result<Box<Self>>;
fn from_stream<R>(stream: &mut R) -> Result<Box<Self>>
    where
        R: Read
; }

Required methods

Creates an instance of T by parsing a slice of bytes.

This method assumes that the byte slice contains unaligned data.

Implementors