Function ocl_core::util::bytes_into_vec

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

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

Safety

Ummm… Say what?

TODO: Consider using alloc::heap::reallocate_inplace equivalent.