pub trait BinaryFormatTrait: Send + Sync {
// Required methods
fn format_type(&self) -> BinaryFormat;
fn architecture(&self) -> Architecture;
fn entry_point(&self) -> Option<u64>;
fn sections(&self) -> &[Section];
fn symbols(&self) -> &[Symbol];
fn imports(&self) -> &[Import];
fn exports(&self) -> &[Export];
fn metadata(&self) -> &BinaryMetadata;
}
Expand description
Trait implemented by all binary formats
Required Methods§
Sourcefn format_type(&self) -> BinaryFormat
fn format_type(&self) -> BinaryFormat
Get format type
Sourcefn architecture(&self) -> Architecture
fn architecture(&self) -> Architecture
Get target architecture
Sourcefn entry_point(&self) -> Option<u64>
fn entry_point(&self) -> Option<u64>
Get entry point
Sourcefn metadata(&self) -> &BinaryMetadata
fn metadata(&self) -> &BinaryMetadata
Get metadata