pub struct Headers<P> { /* private fields */ }
Expand description
Describes the PE headers.
Implementations
sourceimpl<'a, P: Pe<'a>> Headers<P>
impl<'a, P: Pe<'a>> Headers<P>
sourcepub fn image(&self) -> &'a [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
pub fn image(&self) -> &'a [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Gets the PE headers as a byte slice.
sourcepub fn code_range(&self) -> Range<Rva>
pub fn code_range(&self) -> Range<Rva>
Gets the code range from the optional header.
sourcepub fn image_range(&self) -> Range<Rva>
pub fn image_range(&self) -> Range<Rva>
Gets the full image range excluding the PE headers.
Trait Implementations
Auto Trait Implementations
impl<P> RefUnwindSafe for Headers<P>where
P: RefUnwindSafe,
impl<P> Send for Headers<P>where
P: Send,
impl<P> Sync for Headers<P>where
P: Sync,
impl<P> Unpin for Headers<P>where
P: Unpin,
impl<P> UnwindSafe for Headers<P>where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more