pub struct Region { /* private fields */ }Implementations§
Source§impl Region
impl Region
pub fn new() -> Self
pub fn set_bytes( &mut self, file: &str, file_offset: usize, offset: AddressValue, bytes: &[u8], )
pub fn map_bytes( &mut self, file: &str, file_offset: usize, offset: AddressValue, bytes: &[u8], )
pub fn set_constant( &mut self, offset: AddressValue, size: AddressValue, value: u8, )
pub fn clear_bytes(&mut self, offset: AddressValue, size: AddressValue)
pub fn set_equivalent( &mut self, offset: AddressValue, equivalent: Equivalent, ) -> Result<&EquivalentRange, Error>
pub fn clear_equivalents(&mut self, offset: AddressValue, size: AddressValue)
pub fn snapshot_equivalents( &self, offset: AddressValue, size: AddressValue, ) -> Vec<(AddressValue, EquivalentRange)>
pub fn get_equivalent(&self, offset: AddressValue) -> EquivalentAt<'_>
pub fn set_label(&mut self, offset: AddressValue, label: &str)
pub fn clear_label(&mut self, offset: AddressValue)
pub fn get_label(&self, offset: AddressValue) -> Option<&str>
pub fn set_comment(&mut self, offset: AddressValue, comment: &str)
pub fn clear_comment(&mut self, offset: AddressValue)
pub fn get_comment(&self, offset: AddressValue) -> Option<&str>
pub fn set_function(&mut self, function: Function)
pub fn get_function(&self, offset: AddressValue) -> Option<&Function>
pub fn clear_function(&mut self, offset: AddressValue)
pub fn bytes_at(&self, offset: AddressValue, size: AddressValue) -> Vec<u8> ⓘ
Sourcepub fn auto_disassemble(&mut self, start: u32) -> Vec<AddressValue> ⓘ
pub fn auto_disassemble(&mut self, start: u32) -> Vec<AddressValue> ⓘ
Auto-disassembles code addresses recursively. Will not modify any address that already has an equivalent.
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more