Function assembly_core::buffer::cast_slice

source ·
pub fn cast_slice<T: MinimallyAligned>(
    buffer: &[u8],
    offset: u32,
    len: u32,
) -> &[T]
Expand description

Cast a buffer to a slice

§Panics

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