Struct object::WasmSection
source · pub struct WasmSection<'file> { /* private fields */ }
Expand description
A section of an WasmFile
.
Trait Implementations§
source§impl<'file> Debug for WasmSection<'file>
impl<'file> Debug for WasmSection<'file>
source§impl<'file> ObjectSection<'static> for WasmSection<'file>
impl<'file> ObjectSection<'static> for WasmSection<'file>
§type RelocationIterator = WasmRelocationIterator
type RelocationIterator = WasmRelocationIterator
An iterator over the relocations for a section. Read more
source§fn data(&self) -> Cow<'static, [u8]>
fn data(&self) -> Cow<'static, [u8]>
Returns the raw contents of the section.
The length of this data may be different from the size of the
section in memory. Read more
source§fn uncompressed_data(&self) -> Cow<'static, [u8]>
fn uncompressed_data(&self) -> Cow<'static, [u8]>
Returns the uncompressed contents of the section.
The length of this data may be different from the size of the
section in memory. Read more
source§fn segment_name(&self) -> Option<&str>
fn segment_name(&self) -> Option<&str>
Returns the name of the segment for this section.
source§fn kind(&self) -> SectionKind
fn kind(&self) -> SectionKind
Return the kind of this section.
source§fn relocations(&self) -> WasmRelocationIterator ⓘ
fn relocations(&self) -> WasmRelocationIterator ⓘ
Get the relocations for this section.