std::core::mem::vm

protect

fn void? protect(void* ptr, usz len, VirtualMemoryAccess access)
Change the access protection of a region in memory. The region must be page aligned.

Parameters