pub unsafe fn deref_slice<T>(
    data: &mut [u8],
    offset: usize,
    len: usize
) -> Result<*mut [T]>
Expand description

Validates that data contains len elements of type T at offset and returns a mutable slice pointer to the first element on success.

Safety

Callers must ensure that pointer is correctly aligned before accessing it.