SectionHeaders

Struct SectionHeaders 

Source
pub struct SectionHeaders(/* private fields */);
Expand description

Section headers.

Implementations§

Source§

impl SectionHeaders

Source

pub fn image(&self) -> &[IMAGE_SECTION_HEADER]

Returns the underlying slice of section headers.

Source

pub fn as_slice(&self) -> &[SectionHeader]

Gets the section headers as a slice of SectionHeader.

Source

pub fn iter(&self) -> Iter<'_, SectionHeader>

Returns an iterator over the SectionHeader elements.

Source

pub fn by_name<S: ?Sized + AsRef<[u8]>>( &self, name: &S, ) -> Option<&SectionHeader>

Finds a section header by its name.

Source

pub fn by_rva(&self, rva: u32) -> Option<&SectionHeader>

Finds a section header by its RVA.

Trait Implementations§

Source§

impl Debug for SectionHeaders

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> IntoIterator for &'a SectionHeaders

Source§

type Item = &'a SectionHeader

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'a, SectionHeader>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl Pod for SectionHeaders

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> PodMethods for T
where T: Pod + ?Sized,

Source§

fn zeroed() -> T

Returns a zero-initialized instance of the type.
Source§

fn as_bytes(&self) -> &[u8]

Returns the object’s memory as a byte slice.
Source§

fn as_bytes_mut(&mut self) -> &mut [u8]

Returns the object’s memory as a mutable byte slice.
Source§

fn as_data_view(&self) -> &DataView

Returns a data view into the object’s memory.
Source§

fn as_data_view_mut(&mut self) -> &mut DataView

Returns a mutable data view into the object’s memory.