pub struct Image {
pub name: String,
pub image_base: u32,
pub entry_point: u32,
pub size_of_image: u32,
pub sections: Vec<Section>,
pub exports: BTreeMap<String, u32>,
}Expand description
A loaded PE image.
Fields§
§name: StringPath/identifier used during loading. May be empty.
image_base: u32Final image base in emulator memory (after relocation if the preferred base was occupied; round-1 always uses the preferred base).
entry_point: u32OptionalHeader.AddressOfEntryPoint resolved to a
VA (= image_base + AddressOfEntryPoint).
size_of_image: u32Total size of the image in memory (rounded to
SectionAlignment).
sections: Vec<Section>Section descriptors, in load order.
exports: BTreeMap<String, u32>(name → RVA-of-export) table, RVA relative to
image_base. Populated by exports::parse_exports.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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