pub trait SectionMemOps: Send + Sync {
// Required methods
fn as_ptr(&self) -> *const u8;
fn as_mut_ptr(&mut self) -> *mut u8;
fn change_perms(&mut self, perms: SectionPerm) -> bool;
}Expand description
Trait for accessing and manipulating memory for module sections
Required Methods§
fn as_ptr(&self) -> *const u8
fn as_mut_ptr(&mut self) -> *mut u8
Sourcefn change_perms(&mut self, perms: SectionPerm) -> bool
fn change_perms(&mut self, perms: SectionPerm) -> bool
Change the permissions of the memory region