Struct object::elf::ProgramHeader32 [−][src]
Program segment header.
Fields
p_type: U32<E>
Segment type. One of the PT_*
constants.
p_offset: U32<E>
Segment file offset.
p_vaddr: U32<E>
Segment virtual address.
p_paddr: U32<E>
Segment physical address.
p_filesz: U32<E>
Segment size in the file.
p_memsz: U32<E>
Segment size in memory.
p_flags: U32<E>
Segment flags. A combination of the PF_*
constants.
p_align: U32<E>
Segment alignment.
Trait Implementations
impl<E: Clone + Endian> Clone for ProgramHeader32<E>
[src]
fn clone(&self) -> ProgramHeader32<E>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Copy + Endian> Copy for ProgramHeader32<E>
[src]
impl<E: Debug + Endian> Debug for ProgramHeader32<E>
[src]
impl<E: Endian> Pod for ProgramHeader32<E>
[src]
impl<Endian: Endian> ProgramHeader for ProgramHeader32<Endian>
[src]
type Word = u32
type Endian = Endian
type Elf = FileHeader32<Endian>
fn p_type(&self, endian: Self::Endian) -> u32
[src]
fn p_flags(&self, endian: Self::Endian) -> u32
[src]
fn p_offset(&self, endian: Self::Endian) -> Self::Word
[src]
fn p_vaddr(&self, endian: Self::Endian) -> Self::Word
[src]
fn p_paddr(&self, endian: Self::Endian) -> Self::Word
[src]
fn p_filesz(&self, endian: Self::Endian) -> Self::Word
[src]
fn p_memsz(&self, endian: Self::Endian) -> Self::Word
[src]
fn p_align(&self, endian: Self::Endian) -> Self::Word
[src]
fn file_range(&self, endian: Self::Endian) -> (u64, u64)
[src]
fn data<'data>(
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<Bytes<'data>, ()>
[src]
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<Bytes<'data>, ()>
fn data_as_array<'data, T: Pod>(
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<&'data [T], ()>
[src]
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<&'data [T], ()>
fn data_range<'data>(
&self,
endian: Self::Endian,
data: Bytes<'data>,
address: u64,
size: u64
) -> Result<Option<Bytes<'data>>, ()>
[src]
&self,
endian: Self::Endian,
data: Bytes<'data>,
address: u64,
size: u64
) -> Result<Option<Bytes<'data>>, ()>
fn dynamic<'data>(
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<Option<&'data [<Self::Elf as FileHeader>::Dyn]>>
[src]
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<Option<&'data [<Self::Elf as FileHeader>::Dyn]>>
fn notes<'data>(
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<Option<NoteIterator<'data, Self::Elf>>>
[src]
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<Option<NoteIterator<'data, Self::Elf>>>
Auto Trait Implementations
impl<E> Send for ProgramHeader32<E> where
E: Send,
E: Send,
impl<E> Sync for ProgramHeader32<E> where
E: Sync,
E: Sync,
impl<E> Unpin for ProgramHeader32<E> where
E: Unpin,
E: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,