Struct goblin::mach::segment::Section [−][src]
Generalized 32/64 bit Section
Fields
sectname: [u8; 16]
name of this section
segname: [u8; 16]
segment this section goes in
addr: u64
memory address of this section
size: u64
size in bytes of this section
offset: u32
file offset of this section
align: u32
section alignment (power of 2)
reloff: u32
file offset of relocation entries
nreloc: u32
number of relocation entries
flags: u32
flags (section type and attributes
Implementations
impl Section
[src]
pub fn name(&self) -> Result<&str>
[src]
The name of this section
pub fn segname(&self) -> Result<&str>
[src]
The containing segment’s name
pub fn iter_relocations<'b>(
&self,
data: &'b [u8],
ctx: Ctx
) -> RelocationIterator<'b>ⓘNotable traits for RelocationIterator<'a>
impl<'a> Iterator for RelocationIterator<'a> type Item = Result<RelocationInfo>;
[src]
&self,
data: &'b [u8],
ctx: Ctx
) -> RelocationIterator<'b>ⓘ
Notable traits for RelocationIterator<'a>
impl<'a> Iterator for RelocationIterator<'a> type Item = Result<RelocationInfo>;
Iterate this sections relocations given data
; data
must be the original binary
Trait Implementations
impl Debug for Section
[src]
impl Default for Section
[src]
impl From<Section> for Section64
[src]
impl From<Section> for Section32
[src]
impl From<Section32> for Section
[src]
impl From<Section64> for Section
[src]
impl IntoCtx<Ctx, [u8]> for Section
[src]
impl SizeWith<Ctx> for Section
[src]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for Section
[src]
type Error = Error
fn try_from_ctx(bytes: &'a [u8], ctx: Ctx) -> Result<(Self, usize), Self::Error>
[src]
impl TryIntoCtx<Ctx, [u8]> for Section
[src]
Auto Trait Implementations
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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, 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>,