Struct Section64

struct Section64<E: Endian> { ... }

64-bit section.

Fields

sectname: [u8; 16]

name of this section

segname: [u8; 16]

segment this section goes in

addr: crate::endian::U64<E>

memory address of this section

size: crate::endian::U64<E>

size in bytes of this section

offset: crate::endian::U32<E>

file offset of this section

align: crate::endian::U32<E>

section alignment (power of 2)

reloff: crate::endian::U32<E>

file offset of relocation entries

nreloc: crate::endian::U32<E>

number of relocation entries

flags: crate::endian::U32<E>

flags (section type and attributes)

reserved1: crate::endian::U32<E>

reserved (for offset or index)

reserved2: crate::endian::U32<E>

reserved (for count or sizeof)

reserved3: crate::endian::U32<E>

reserved

Implementations

impl<E> Freeze for Section64<E>

impl<E> RefUnwindSafe for Section64<E>

impl<E> Send for Section64<E>

impl<E> Sync for Section64<E>

impl<E> Unpin for Section64<E>

impl<E> UnwindSafe for Section64<E>

impl<E: $crate::clone::Clone + Endian> Clone for Section64<E>

fn clone(self: &Self) -> Section64<E>

impl<E: $crate::fmt::Debug + Endian> Debug for Section64<E>

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

impl<E: $crate::marker::Copy + Endian> Copy for Section64<E>

impl<E: Endian> Pod for Section64<E>

impl<Endian: endian::Endian> Section for macho::Section64<Endian>

fn sectname(self: &Self) -> &[u8; 16]
fn segname(self: &Self) -> &[u8; 16]
fn addr(self: &Self, endian: <Self as >::Endian) -> <Self as >::Word
fn size(self: &Self, endian: <Self as >::Endian) -> <Self as >::Word
fn offset(self: &Self, endian: <Self as >::Endian) -> u32
fn align(self: &Self, endian: <Self as >::Endian) -> u32
fn reloff(self: &Self, endian: <Self as >::Endian) -> u32
fn nreloc(self: &Self, endian: <Self as >::Endian) -> u32
fn flags(self: &Self, endian: <Self as >::Endian) -> u32

impl<T> Any for Section64<E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Section64<E>

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

impl<T> BorrowMut for Section64<E>

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

impl<T> CloneToUninit for Section64<E>

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

impl<T> From for Section64<E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Section64<E>

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

impl<T, U> Into for Section64<E>

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 Section64<E>

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

impl<T, U> TryInto for Section64<E>

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