Enum goblin::mach::exports::ExportInfo [−][src]
An export can be a regular export, a re-export, or a stub
Variants
A regular exported symbol, which is an address where it is found, and the flags associated with it
if lib_symbol_name None then same symbol name, otherwise reexport of lib_symbol_name with name in the trie “If the string is zero length, then the symbol is re-export from the specified dylib with the same name”
If the flags is EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER, then following the flags are two Uleb128s: the stub offset and the resolver offset. The stub is used by non-lazy pointers. The resolver is used by lazy pointers and must be called to get the actual address to use
Implementations
impl<'a> ExportInfo<'a>[src]
pub fn parse(
bytes: &'a [u8],
libs: &[&'a str],
flags: u64,
offset: usize
) -> Result<ExportInfo<'a>>[src]
bytes: &'a [u8],
libs: &[&'a str],
flags: u64,
offset: usize
) -> Result<ExportInfo<'a>>
Parse out the export info from bytes, at offset
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ExportInfo<'a>
impl<'a> Send for ExportInfo<'a>
impl<'a> Sync for ExportInfo<'a>
impl<'a> Unpin for ExportInfo<'a>
impl<'a> UnwindSafe for ExportInfo<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,