Struct object::pe::ImageSectionHeader [−][src]
#[repr(C)]pub struct ImageSectionHeader {
pub name: [u8; 8],
pub virtual_size: U32<LE>,
pub virtual_address: U32<LE>,
pub size_of_raw_data: U32<LE>,
pub pointer_to_raw_data: U32<LE>,
pub pointer_to_relocations: U32<LE>,
pub pointer_to_linenumbers: U32<LE>,
pub number_of_relocations: U16<LE>,
pub number_of_linenumbers: U16<LE>,
pub characteristics: U32<LE>,
}
Fields
name: [u8; 8]
virtual_size: U32<LE>
virtual_address: U32<LE>
size_of_raw_data: U32<LE>
pointer_to_raw_data: U32<LE>
pointer_to_relocations: U32<LE>
pointer_to_linenumbers: U32<LE>
number_of_relocations: U16<LE>
number_of_linenumbers: U16<LE>
characteristics: U32<LE>
Implementations
Return the section name.
This handles decoding names that are offsets into the symbol string table.
Return the offset and size of the section in a COFF file.
Returns None
for sections that have no data in the file.
Return the section data in a COFF file.
Returns Ok(&[])
if the section has no data.
Returns Err
for invalid values.
Return the section alignment in bytes.
This is only valid for sections in a COFF file.
pub fn coff_relocations<'data, R: ReadRef<'data>>(
&self,
data: R
) -> Result<&'data [ImageRelocation]>
pub fn coff_relocations<'data, R: ReadRef<'data>>(
&self,
data: R
) -> Result<&'data [ImageRelocation]>
Read the relocations in a COFF file.
data
must be the entire file data.
Return the offset and size of the section in a PE file.
Returns None
for sections that have no data in the file.
Return the section data in a PE file.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImageSectionHeader
impl Send for ImageSectionHeader
impl Sync for ImageSectionHeader
impl Unpin for ImageSectionHeader
impl UnwindSafe for ImageSectionHeader
Blanket Implementations
Mutably borrows from an owned value. Read more