Expand description
Best-effort memory readability probes that avoid trapping on invalid pointers.
The functions in this crate are designed for FFI boundaries where you want to sanity-check
user-provided pointers. They rely on platform facilities that report faults as recoverable
errors instead of signalling SIGSEGV. All checks are heuristics by nature—another thread can
still revoke access after a probe succeeds—so treat the results as hints rather than hard
guarantees.
Enums§
- Check
Error - Errors returned by the probe helpers.
Functions§
- probe_
readable - Performs a best-effort check that the region
[ptr, ptr + len)is readable without trapping. - probe_
readable_ range - Probes whether
countconsecutiveTvalues starting atptrare readable. - probe_
readable_ slice - Probes whether the provided slice resides in readable memory.
- probe_
readable_ value - Probes whether
ptrrefers to a readableTvalue.