fn alloc_slice<T>(buf: &mut [u8], len: usize) -> Option<(&mut [T], &mut [u8])>where
T: AnyBitPattern + NoUninit,
Expand description
Allocates a mutable slice of T
of the given length from the specified
buffer.
Returns the allocated slice and the remainder of the buffer.