pub unsafe fn read_value_at<T>(bytes: &[u8], offset: &mut usize) -> Twhere
T: Clone,Expand description
Creates a copy of value of type T based on the provided bytes buffer.
§Safety
This is higly unsafe. This function doesn’t ensure alignment and correctness of provided buffer. The responsibility of such checks is on the caller.