Struct pelite::pe32::exports::Exports [−][src]
pub struct Exports<'a, P> { /* fields omitted */ }
Export directory.
For more information see the module-level documentation.
Methods
impl<'a, P: Pe<'a> + Copy> Exports<'a, P>
[src]
impl<'a, P: Pe<'a> + Copy> Exports<'a, P>
pub fn pe(&self) -> P
[src]
pub fn pe(&self) -> P
Gets the PE instance.
pub fn image(&self) -> &'a IMAGE_EXPORT_DIRECTORY
[src]
pub fn image(&self) -> &'a IMAGE_EXPORT_DIRECTORY
Returns the underlying export directory image.
pub fn dll_name(&self) -> Result<&'a CStr>
[src]
pub fn dll_name(&self) -> Result<&'a CStr>
Gets the export directory's name for this library.
pub fn ordinal_base(&self) -> Ordinal
[src]
pub fn ordinal_base(&self) -> Ordinal
Gets the ordinal base for the exported functions.
pub fn functions(&self) -> Result<&'a [Rva]>
[src]
pub fn functions(&self) -> Result<&'a [Rva]>
Gets the export address table.
pub fn names(&self) -> Result<&'a [Rva]>
[src]
pub fn names(&self) -> Result<&'a [Rva]>
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]
pub fn name_indices(&self) -> Result<&'a [u16]>
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]
pub fn by(&self) -> Result<By<'a, P>>
Query the exports.
This specifically validates whether the functions, names and name indices are valid.
Trait Implementations
impl<'a, P: 'a + Pe<'a> + Copy> Serialize for Exports<'a, P>
[src]
impl<'a, P: 'a + Pe<'a> + Copy> Serialize for Exports<'a, P>
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
[src]
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'a, P: Copy> Copy for Exports<'a, P>
[src]
impl<'a, P: Copy> Copy for Exports<'a, P>
impl<'a, P: Clone> Clone for Exports<'a, P>
[src]
impl<'a, P: Clone> Clone for Exports<'a, P>
fn clone(&self) -> Exports<'a, P>
[src]
fn clone(&self) -> Exports<'a, P>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a, P: 'a + Pe<'a> + Copy> Debug for Exports<'a, P>
[src]
impl<'a, P: 'a + Pe<'a> + Copy> Debug for Exports<'a, P>