[][src]Struct object::read::coff::SectionTable

pub struct SectionTable<'data> { /* fields omitted */ }

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]

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> RefUnwindSafe for SectionTable<'data>

impl<'data> Send for SectionTable<'data>

impl<'data> Sync for SectionTable<'data>

impl<'data> Unpin for SectionTable<'data>

impl<'data> UnwindSafe for SectionTable<'data>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.