read_any

Function read_any 

Source
pub unsafe fn read_any<T>(ptr: *const u8) -> T
Expand description

Helper function to read a u* pointer to a value of type T.

§Safety

ptr must be valid it’s size and it’s memory size must be the size of T or higher.