[][src]Struct pelite::pe64::exports::Exports

pub struct Exports<'a, P> { /* fields omitted */ }

Export directory.

For more information see the module-level documentation.

Methods

impl<'a, P: Pe<'a>> Exports<'a, P>[src]

pub fn pe(&self) -> P[src]

Gets the PE instance.

pub fn image(&self) -> &'a IMAGE_EXPORT_DIRECTORY[src]

Returns the underlying export directory image.

pub fn dll_name(&self) -> Result<&'a CStr>[src]

Gets the export directory's name for this library.

pub fn ordinal_base(&self) -> Ordinal[src]

Gets the ordinal base for the exported functions.

pub fn functions(&self) -> Result<&'a [Rva]>[src]

Gets the export address table.

pub fn names(&self) -> Result<&'a [Rva]>[src]

Gets the name address table.

The values are RVAs to the exported function's name, to find its export look at the name index table with the same index.

The names are sorted allowing binary search lookup.

pub fn name_indices(&self) -> Result<&'a [u16]>[src]

Gets the name index table.

The values are indices (not ordinals!) into the export address table matching name with the same index in the name address table.

pub fn by(&self) -> Result<By<'a, P>>[src]

Query the exports.

This specifically validates whether the functions, names and name indices are valid.

Trait Implementations

impl<'a, P: Clone> Clone for Exports<'a, P>[src]

impl<'a, P: Copy> Copy for Exports<'a, P>[src]

impl<'a, P: Pe<'a>> Debug for Exports<'a, P>[src]

impl<'a, P: Pe<'a>> Serialize for Exports<'a, P>[src]

Auto Trait Implementations

impl<'a, P> Sync for Exports<'a, P> where
    P: Sync

impl<'a, P> Send for Exports<'a, P> where
    P: Send

impl<'a, P> Unpin for Exports<'a, P> where
    P: Unpin

impl<'a, P> UnwindSafe for Exports<'a, P> where
    P: UnwindSafe

impl<'a, P> RefUnwindSafe for Exports<'a, P> where
    P: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]