pub struct Program {
pub elf_header: ELFHeader,
pub program_headers: Vec<ProgramHeader>,
pub section_headers: Vec<SectionHeader>,
pub section_header_entries: Vec<SectionHeaderEntry>,
pub relocations: Vec<Relocation>,
}Fields§
§elf_header: ELFHeader§program_headers: Vec<ProgramHeader>§section_headers: Vec<SectionHeader>§section_header_entries: Vec<SectionHeaderEntry>§relocations: Vec<Relocation>Implementations§
Source§impl Program
impl Program
pub fn from_bytes(b: &[u8]) -> Result<Self, DisassemblerError>
pub fn to_ixs( self, ) -> Result<(Vec<Instruction>, Option<RodataSection>), DisassemblerError>
Sourcepub fn get_entrypoint_offset(&self) -> Option<u64>
pub fn get_entrypoint_offset(&self) -> Option<u64>
Get the entrypoint offset
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Program
impl<'de> Deserialize<'de> for Program
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnsafeUnpin for Program
impl UnwindSafe for Program
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more