Function object::pod::slice_from_bytes

source ยท
pub fn slice_from_bytes<T: Pod>(
    data: &[u8],
    count: usize,
) -> Result<(&[T], &[u8]), ()>
Expand description

Cast a byte slice to a slice of a Pod type.

Returns the type slice and the tail of the byte slice.