Function spl_pod::bytemuck::pod_slice_from_bytes

source ยท
pub fn pod_slice_from_bytes<T: Pod>(bytes: &[u8]) -> Result<&[T], ProgramError>
Expand description

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