Function bytecheck::check_bytes

source ·
pub unsafe fn check_bytes<T, E>(value: *const T) -> Result<(), E>
where T: CheckBytes<Strategy<(), E>> + ?Sized,
Expand description

Checks whether the given pointer points to a valid value.

Safety

The passed pointer must be aligned and point to enough initialized bytes to represent the type.