zeroize_mem

Function zeroize_mem 

Source
pub unsafe fn zeroize_mem(ptr: *mut u8, len: usize)
Expand description

Zeroize the memory pointed to by ptr and of size len bytes.

This is guarantied to be not elided by the compiler.

ยงSafety

The caller must ensure that ptr is valid for writes of len bytes, see the std::ptr documentation. In particular this function is not atomic.