Skip to main content

is_user_range

Function is_user_range 

Source
pub fn is_user_range(p: *const u8, len: usize) -> bool
🔬This is a nightly-only experimental API. (sgx_platform #56975)
Available on Fortanix and SGX only.
Expand description

Returns true if the specified memory range is in userspace.

For safety, this function also checks whether the range given overflows, returning false if so.