Struct SectionHeader32

struct SectionHeader32 { ... }

Section header.

Fields

s_name: [u8; 8]

Section name.

s_paddr: crate::endian::U32<crate::endian::BigEndian>

Physical address.

s_vaddr: crate::endian::U32<crate::endian::BigEndian>

Virtual address (same as physical address).

s_size: crate::endian::U32<crate::endian::BigEndian>

Section size.

s_scnptr: crate::endian::U32<crate::endian::BigEndian>

Offset in file to raw data for section.

s_relptr: crate::endian::U32<crate::endian::BigEndian>

Offset in file to relocation entries for section.

s_lnnoptr: crate::endian::U32<crate::endian::BigEndian>

Offset in file to line number entries for section.

s_nreloc: crate::endian::U16<crate::endian::BigEndian>

Number of relocation entries.

s_nlnno: crate::endian::U16<crate::endian::BigEndian>

Number of line number entries.

s_flags: crate::endian::U32<crate::endian::BigEndian>

Flags to define the section type.

Implementations

impl Clone for SectionHeader32

fn clone(self: &Self) -> SectionHeader32

impl Copy for SectionHeader32

impl Debug for SectionHeader32

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

impl Freeze for SectionHeader32

impl Pod for SectionHeader32

impl RefUnwindSafe for SectionHeader32

impl SectionHeader for xcoff::SectionHeader32

fn s_name(self: &Self) -> &[u8; 8]
fn s_paddr(self: &Self) -> <Self as >::Word
fn s_vaddr(self: &Self) -> <Self as >::Word
fn s_size(self: &Self) -> <Self as >::Word
fn s_scnptr(self: &Self) -> <Self as >::Word
fn s_relptr(self: &Self) -> <Self as >::Word
fn s_lnnoptr(self: &Self) -> <Self as >::Word
fn s_nreloc(self: &Self) -> <Self as >::HalfWord
fn s_nlnno(self: &Self) -> <Self as >::HalfWord
fn s_flags(self: &Self) -> u32
fn relocations<'data, R: ReadRef<'data>>(self: &Self, data: R) -> read::Result<&'data [<Self as >::Rel]>

Read the relocations in a XCOFF32 file.

data must be the entire file data.

impl Send for SectionHeader32

impl Sync for SectionHeader32

impl Unpin for SectionHeader32

impl UnwindSafe for SectionHeader32

impl<T> Any for SectionHeader32

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for SectionHeader32

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for SectionHeader32

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

impl<T> CloneToUninit for SectionHeader32

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for SectionHeader32

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for SectionHeader32

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for SectionHeader32

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for SectionHeader32

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for SectionHeader32

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>