[−][src]Struct object::read::coff::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][+]
impl<'data> Copy for SectionTable<'data>[src]
impl<'data> Debug for SectionTable<'data>[src][+]
impl<'data> Default for 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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src][+]
U: TryFrom<T>,