[−][src]Struct object::read::pe::SectionTable
The table of section headers in a COFF or PE file.
Implementations
impl<'data> SectionTable<'data>
[src]
pub fn parse(header: &ImageFileHeader, data: Bytes<'data>) -> Result<Self>
[src]
Parse the section table.
data
must be the data following the optional header.
pub fn iter(&self) -> Iter<'data, ImageSectionHeader>
[src]
Iterate over the section headers.
Warning: sections indices start at 1.
pub fn is_empty(&self) -> bool
[src]
Return true if the section table is empty.
pub fn len(&self) -> usize
[src]
The number of section headers.
pub fn section(&self, index: usize) -> Result<&'data ImageSectionHeader>
[src]
Return the section header at the given index.
The index is 1-based.
pub fn section_by_name(
&self,
strings: StringTable<'data>,
name: &[u8]
) -> Option<(usize, &'data ImageSectionHeader)>
[src]
&self,
strings: StringTable<'data>,
name: &[u8]
) -> Option<(usize, &'data ImageSectionHeader)>
Return the section header with the given name.
The returned index is 1-based.
Ignores sections with invalid names.
Trait Implementations
impl<'data> Clone for SectionTable<'data>
[src]
fn clone(&self) -> SectionTable<'data>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'data> Copy for SectionTable<'data>
[src]
impl<'data> Debug for SectionTable<'data>
[src]
impl<'data> Default for SectionTable<'data>
[src]
fn default() -> SectionTable<'data>
[src]
Auto Trait Implementations
impl<'data> Send for SectionTable<'data>
impl<'data> Sync for SectionTable<'data>
impl<'data> Unpin for SectionTable<'data>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,