pub struct Disassembler { /* private fields */ }Expand description
Disassembler wrapper supporting multiple engines
Implementations§
Source§impl Disassembler
impl Disassembler
Sourcepub fn new(architecture: Architecture) -> Result<Self>
pub fn new(architecture: Architecture) -> Result<Self>
Create a new disassembler for the specified architecture
Sourcepub fn with_config(
architecture: Architecture,
config: DisassemblyConfig,
) -> Result<Self>
pub fn with_config( architecture: Architecture, config: DisassemblyConfig, ) -> Result<Self>
Create disassembler with custom configuration
Sourcepub fn disassemble(&self, data: &[u8], address: u64) -> Result<Vec<Instruction>>
pub fn disassemble(&self, data: &[u8], address: u64) -> Result<Vec<Instruction>>
Disassemble binary code
Sourcepub fn disassemble_section(
&self,
binary: &BinaryFile,
section_name: &str,
) -> Result<Vec<Instruction>>
pub fn disassemble_section( &self, binary: &BinaryFile, section_name: &str, ) -> Result<Vec<Instruction>>
Disassemble a specific section of a binary
Sourcepub fn disassemble_at(
&self,
data: &[u8],
address: u64,
length: usize,
) -> Result<Vec<Instruction>>
pub fn disassemble_at( &self, data: &[u8], address: u64, length: usize, ) -> Result<Vec<Instruction>>
Disassemble code at specific address with length
Auto Trait Implementations§
impl Freeze for Disassembler
impl RefUnwindSafe for Disassembler
impl Send for Disassembler
impl Sync for Disassembler
impl Unpin for Disassembler
impl UnwindSafe for Disassembler
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