blocks_to_slice

Function blocks_to_slice 

Source
pub fn blocks_to_slice<ALIGN, const SIZE: usize>(
    buf: &[Aligned<ALIGN, [u8; SIZE]>],
) -> &[u8]
where ALIGN: Alignment,
Expand description

Cast a slice of aligned blocks to a byte slice

This function panics if

  • ALIGNment is not a multiple of SIZE