iai_callgrind::client_requests::memcheck

Function check_mem_is_addressable

source
pub fn check_mem_is_addressable(addr: *const (), len: usize) -> usize
Available on crate feature client_requests_defs only.
Expand description

Check that memory at addr is addressable for len bytes

If suitable addressibility is not established, Valgrind prints an error message and returns the address of the first offending byte. Otherwise, it returns zero.