Trait pelite::pe32::PeObject

source ·
pub unsafe trait PeObject<'a> {
    fn image(&self) -> &'a [u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8];
    fn align(&self) -> Align;
}

Required Methods

Returns the image as a byte slice.

Returns whether this image uses file alignment or section alignment.

Trait Implementations

Returns the DOS header.
Returns the DOS image. Read more
Returns the NT headers.
Returns the file header.
Returns the optional header.
Returns the data directory.
Returns the section headers.
Returns the pe headers together in a single struct.
Converts a relative virtual address to file offset. Read more
Converts a file offset to relative virtual address. Read more
Converts from relative virtual address to virtual address. Read more
Converts from virtual address to relative virtual address. Read more
Slices the image at the specified rva. Read more
Slices the image at the specified rva returning a byte slice with no alignment or minimum size. Read more
Gets the bytes defined by a section header in this image. Read more
Reads the image at the specified va. Read more
Reads the image at the specified va returning a byte slice with no alignment or minimum size. Read more
Reads an aligned pod T.
Reads an unaligned pod T.
Reads and byte-wise copies the content to the given destination. Read more
Reads an array of pod T with given length.
Reads an array of pod T. Read more
Reads an array of pod T. Read more
Reads a nul-terminated C string.
Reads a string.
Dereferences the pointer to a pod T.
Dereferences the pointer to an unaligned pod T.
Reads and byte-wise copies the content to the given destination. Read more
Reads an array of pod T with given length.
Reads an array of pod T. Read more
Reads an array of pod T. Read more
Dereferences the pointer to a nul-terminated C string.
Dereferences the pointer to a string.
Returns the Rich structure.
Gets the Export Directory. Read more
Gets the Import Directory. Read more
Gets the Import Address Table. Read more
Gets the Base Relocations Directory. Read more
Gets the Load Config Directory. Read more
Gets the TLS Directory. Read more
Gets the Security Directory. Read more
Gets the Exception Directory. Read more
Gets the Debug Directory. Read more
Gets the Resources. Read more
Gets Scanner access. Read more
Returns the image as a byte slice.
Returns whether this image uses file alignment or section alignment.

Implementors