pub fn cast_slice<T: MinimallyAligned>(
    buffer: &[u8],
    offset: u32,
    len: u32
) -> &[T]Notable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Expand description

Cast a buffer to a slice

Panics

  • If the [offset, offset + len] is not contained by the buffer