pub fn slice_to_blocks<ALIGN, const SIZE: usize>(
slice: &[u8],
) -> &[Aligned<ALIGN, [u8; SIZE]>]where
ALIGN: Alignment,Expand description
Cast a byte slice to an aligned slice of blocks.
This function panics if
- ALIGNment is not a multiple of SIZE
- The input slice is not a multiple of SIZE
- The input slice does not have the correct alignment.