Function bytecheck::check_bytes_with_context
source · pub unsafe fn check_bytes_with_context<T, C, E>(
value: *const T,
context: &mut C
) -> Result<(), E>
Expand description
Checks whether the given pointer points to a valid value within the given context.
Safety
The passed pointer must be aligned and point to enough initialized bytes to represent the type.