Function ocl_core::util::bytes_into

source ·
pub unsafe fn bytes_into<T>(vec: Vec<u8>) -> Result<T, UtilError>
Expand description

Converts a vector of bytes into a value of arbitrary type.

Safety

Roughly equivalent to a weekend in Tijuana.