unsafe fn raw_processbuf_to_roprocessslice<'a>(
    ptr: *const u8,
    len: usize,
) -> &'a ReadableProcessSlice
Expand description

Convert a process buffer’s internal representation to a ReadableProcessSlice.

This function will automatically convert zero-length process buffers into valid zero-sized Rust slices regardless of the value of ptr.

§Safety requirements

In the case of len != 0, the memory [ptr; ptr + len) must be within a single process’ address space, and ptr must be nonzero. This memory region must be mapped as readable, and optionally writable and executable. It must be allocated within a single process’ address space for the entire lifetime 'a.

It is sound for multiple overlapping ReadableProcessSlices or WriteableProcessSlices to be in scope at the same time.