Skip to main content

SectionMemOps

Trait SectionMemOps 

Source
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§

Source

fn as_ptr(&self) -> *const u8

Source

fn as_mut_ptr(&mut self) -> *mut u8

Source

fn change_perms(&mut self, perms: SectionPerm) -> bool

Change the permissions of the memory region

Implementors§