[][src]Function peek_poke::peek_from_slice

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

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.