Struct goblin::elf::section_header::SectionHeader [] [src]

pub struct SectionHeader {
    pub sh_name: usize,
    pub sh_type: u32,
    pub sh_flags: u64,
    pub sh_addr: u64,
    pub sh_offset: u64,
    pub sh_size: u64,
    pub sh_link: u32,
    pub sh_info: u32,
    pub sh_addralign: u64,
    pub sh_entsize: u64,
}

A unified SectionHeader - convertable to and from 32-bit and 64-bit variants

Fields

Section name (string tbl index)

Section type

Section flags

Section virtual addr at execution

Section file offset

Section size in bytes

Link to another section

Additional section information

Section alignment

Entry size if section holds table

Methods

impl SectionHeader
[src]

[src]

Return the size of the underlying program header, given a container

[src]

Important traits for Range<A>
[src]

Returns this section header's file offset range

Important traits for Range<A>
[src]

Returns this section header's virtual memory range

[src]

Parse count section headers from bytes at offset, using the given ctx

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl From<SectionHeader> for ElfSectionHeader
[src]

[src]

Performs the conversion.

impl From<ElfSectionHeader> for SectionHeader
[src]

[src]

Performs the conversion.

impl From<SectionHeader> for ElfSectionHeader
[src]

[src]

Performs the conversion.

impl From<ElfSectionHeader> for SectionHeader
[src]

[src]

Performs the conversion.

impl Default for SectionHeader
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for SectionHeader
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for SectionHeader
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SectionHeader
[src]

[src]

Formats the value using the given formatter. Read more

impl SizeWith<Ctx> for SectionHeader
[src]

[src]

impl<'a> TryFromCtx<'a, Ctx> for SectionHeader
[src]

[src]

impl TryIntoCtx<Ctx> for SectionHeader
[src]

[src]

impl IntoCtx<Ctx> for SectionHeader
[src]

[src]

Auto Trait Implementations

impl Send for SectionHeader

impl Sync for SectionHeader