Function rustix::utils::check_raw_pointer
source ยท pub(crate) fn check_raw_pointer<T>(value: *mut c_void) -> Option<NonNull<T>>
Expand description
Convert a *mut c_void
to a *mut T
, checking that it is not null,
misaligned, or pointing to a region of memory that wraps around the address
space.