Struct SectionHeader64

struct SectionHeader64 { ... }

Section header.

Fields

s_name: [u8; 8]

Section name.

s_paddr: crate::endian::U64<crate::endian::BigEndian>

Physical address.

s_vaddr: crate::endian::U64<crate::endian::BigEndian>

Virtual address (same as physical address).

s_size: crate::endian::U64<crate::endian::BigEndian>

Section size.

s_scnptr: crate::endian::U64<crate::endian::BigEndian>

Offset in file to raw data for section.

s_relptr: crate::endian::U64<crate::endian::BigEndian>

Offset in file to relocation entries for section.

s_lnnoptr: crate::endian::U64<crate::endian::BigEndian>

Offset in file to line number entries for section.

s_nreloc: crate::endian::U32<crate::endian::BigEndian>

Number of relocation entries.

s_nlnno: crate::endian::U32<crate::endian::BigEndian>

Number of line number entries.

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

Flags to define the section type.

s_reserve: crate::endian::U32<crate::endian::BigEndian>

Reserved.

Implementations

impl Clone for SectionHeader64

fn clone(self: &Self) -> SectionHeader64

impl Copy for SectionHeader64

impl Debug for SectionHeader64

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

impl Freeze for SectionHeader64

impl Pod for SectionHeader64

impl RefUnwindSafe for SectionHeader64

impl SectionHeader for xcoff::SectionHeader64

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 XCOFF64 file.

data must be the entire file data.

impl Send for SectionHeader64

impl Sync for SectionHeader64

impl Unpin for SectionHeader64

impl UnwindSafe for SectionHeader64

impl<T> Any for SectionHeader64

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for SectionHeader64

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

impl<T> BorrowMut for SectionHeader64

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

impl<T> CloneToUninit for SectionHeader64

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

impl<T> From for SectionHeader64

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for SectionHeader64

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

impl<T, U> Into for SectionHeader64

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 SectionHeader64

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

impl<T, U> TryInto for SectionHeader64

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