Function ocl_core::util::bytes_to

source ·
pub unsafe fn bytes_to<T>(bytes: &[u8]) -> Result<T, UtilError>
Expand description

Copies a slice of bytes to a new value of arbitrary type.

Safety

You may want to wear a helmet.