[][src]Trait pelite::util::FromBytes

pub trait FromBytes {
    const MIN_SIZE_OF: usize;
    const ALIGN_OF: usize;

    unsafe fn from_bytes(bytes: &[u8]) -> Option<&Self>;
}

Converts from a byte slice to a string.

Associated Constants

const MIN_SIZE_OF: usize

Minimum size argument.

const ALIGN_OF: usize

Alignment argument.

Loading content...

Required methods

unsafe fn from_bytes(bytes: &[u8]) -> Option<&Self>

Converts from a byte slice to a string.

Safety

The given byte slice must have the minimum size and alignment as specified.

Loading content...

Implementors

impl FromBytes for CStr[src]

Loading content...