Struct goblin::mach::segment::Section[][src]

pub struct Section {
    pub sectname: [u8; 16],
    pub segname: [u8; 16],
    pub addr: u64,
    pub size: u64,
    pub offset: u32,
    pub align: u32,
    pub reloff: u32,
    pub nreloc: u32,
    pub flags: u32,
}
Expand description

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

The name of this section

The containing segment’s name

Iterate this sections relocations given data; data must be the original binary

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.