spl_pod::bytemuck

Function pod_slice_from_bytes_mut

Source
pub fn pod_slice_from_bytes_mut<T: Pod>(
    bytes: &mut [u8],
) -> Result<&mut [T], ProgramError>
Expand description

Convert a slice of bytes into a mutable Pod slice (zero copy)