Function azul_peek_poke::peek_from_slice[][src]

pub fn peek_from_slice<'a, T: Peek>(src: &'a [u8], dst: &mut T) -> &'a [u8]
Expand description

Peek inplace a T from a slice of bytes, returning a slice of the remaining bytes. src must contain at least T::max_size() bytes.

ensure_red_zone can be used to add required padding.