[][src]Struct goblin::pe::section_table::SectionTable

#[repr(C)]
pub struct SectionTable {
    pub name: [u8; 8],
    pub real_name: Option<String>,
    pub virtual_size: u32,
    pub virtual_address: u32,
    pub size_of_raw_data: u32,
    pub pointer_to_raw_data: u32,
    pub pointer_to_relocations: u32,
    pub pointer_to_linenumbers: u32,
    pub number_of_relocations: u16,
    pub number_of_linenumbers: u16,
    pub characteristics: u32,
}

Fields

name: [u8; 8]real_name: Option<String>virtual_size: u32virtual_address: u32size_of_raw_data: u32pointer_to_raw_data: u32pointer_to_relocations: u32pointer_to_linenumbers: u32number_of_relocations: u16number_of_linenumbers: u16characteristics: u32

Methods

impl SectionTable[src]

pub fn parse(
    bytes: &[u8],
    offset: &mut usize,
    string_table_offset: usize
) -> Result<Self>
[src]

pub fn name_offset(&self) -> Result<Option<usize>>[src]

pub fn set_name_offset(&mut self, idx: usize) -> Result<()>[src]

pub fn name(&self) -> Result<&str>[src]

pub fn relocations<'a>(&self, bytes: &'a [u8]) -> Result<Relocations<'a>>[src]

Trait Implementations

impl PartialEq<SectionTable> for SectionTable[src]

impl Clone for SectionTable[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for SectionTable[src]

impl Debug for SectionTable[src]

impl IntoCtx<Endian, [u8]> for SectionTable[src]

impl TryIntoCtx<Endian, [u8]> for SectionTable[src]

type Error = Error

type Size = usize

impl SizeWith<Endian> for SectionTable[src]

type Units = usize

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]