Function panda_sys::memory_region_set_readonly
source · pub unsafe extern "C" fn memory_region_set_readonly(
mr: *mut MemoryRegion,
readonly: bool
)
Expand description
memory_region_set_readonly: Turn a memory region read-only (or read-write)
Allows a memory region to be marked as read-only (turning it into a ROM). only useful on RAM regions.
@mr: the region being updated. @readonly: whether rhe region is to be ROM or RAM.