Struct smda::report::DisassemblyReport
source · pub struct DisassemblyReport {
pub format: FileFormat,
pub architecture: FileArchitecture,
pub base_addr: u64,
pub bitness: u32,
pub buffer: Vec<u8>,
pub code_sections: Vec<(String, u64, u64)>,
pub sections: Vec<(String, u64, usize)>,
pub imports: Vec<(String, String, usize)>,
pub exports: Vec<(String, usize, Option<String>)>,
/* private fields */
}Fields§
§format: FileFormat§architecture: FileArchitecture§base_addr: u64§bitness: u32§buffer: Vec<u8>§code_sections: Vec<(String, u64, u64)>§sections: Vec<(String, u64, usize)>§imports: Vec<(String, String, usize)>§exports: Vec<(String, usize, Option<String>)>Implementations§
source§impl DisassemblyReport
impl DisassemblyReport
pub fn new(disassembly: &mut DisassemblyResult) -> Result<DisassemblyReport>
pub fn get_functions(&self) -> Result<&HashMap<u64, Function>>
pub fn get_function(&self, function_addr: u64) -> Result<&Function>
pub fn is_addr_within_memory_image(&self, offset: &u64) -> Result<bool>
pub fn get_section(&self, offset: &u64) -> Result<&(String, u64, u64)>
Trait Implementations§
source§impl Clone for DisassemblyReport
impl Clone for DisassemblyReport
source§fn clone(&self) -> DisassemblyReport
fn clone(&self) -> DisassemblyReport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DisassemblyReport
impl Send for DisassemblyReport
impl Sync for DisassemblyReport
impl Unpin for DisassemblyReport
impl UnwindSafe for DisassemblyReport
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