[][src]Struct metagoblin::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

Implementations

impl SectionTable[src]

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

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

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

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

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

Trait Implementations

impl Clone for SectionTable[src]

impl Debug for SectionTable[src]

impl Default for SectionTable[src]

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

impl PartialEq<SectionTable> for SectionTable[src]

impl SizeWith<Endian> for SectionTable[src]

impl StructuralPartialEq for SectionTable[src]

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

type Error = Error

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.