pub struct Object<'a> {
endian: NativeEndian,
data: &'a [u8],
sections: SectionTable<'a, FileHeader64<NativeEndian>>,
strings: StringTable<'a>,
syms: Vec<ParsedSym>,
}
Fields§
§endian: NativeEndian
Zero-sized type representing the native endianness.
We could use a literal instead, but this helps ensure correctness.
data: &'a [u8]
The entire file data.
sections: SectionTable<'a, FileHeader64<NativeEndian>>
§strings: StringTable<'a>
§syms: Vec<ParsedSym>
List of pre-parsed and sorted symbols by base address.
Implementations§
source§impl<'a> Object<'a>
impl<'a> Object<'a>
fn parse(data: &'a [u8]) -> Option<Object<'a>>
pub fn section(&self, stash: &'a Stash, name: &str) -> Option<&'a [u8]>
fn section_header( &self, name: &str, ) -> Option<&<FileHeader64<NativeEndian> as FileHeader>::SectionHeader>
pub fn search_symtab<'b>(&'b self, addr: u64) -> Option<&'b [u8]>
pub(super) fn search_object_map( &self, _addr: u64, ) -> Option<(&Context<'_>, u64)>
fn build_id(&self) -> Option<&'a [u8]>
fn gnu_debuglink_path(&self, path: &Path) -> Option<(PathBuf, u32)>
fn gnu_debugaltlink_path(&self, path: &Path) -> Option<(PathBuf, &'a [u8])>
Auto Trait Implementations§
impl<'a> Freeze for Object<'a>
impl<'a> RefUnwindSafe for Object<'a>
impl<'a> Send for Object<'a>
impl<'a> Sync for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> UnwindSafe for Object<'a>
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