Struct wasmparser::CoreDumpInstance
source · pub struct CoreDumpInstance {
pub module_index: u32,
pub memories: Vec<u32>,
pub globals: Vec<u32>,
}
Expand description
A single instance from a coredump instances section
Fields§
§module_index: u32
The module that this is an instance of, as an index into a “coremodules” section.
memories: Vec<u32>
Which of the coredump’s memories are this instance’s memories, via indexing into the memory index space.
globals: Vec<u32>
Which of the coredump’s globals are this instance’s globals, via indexing into the global index space.
Trait Implementations§
source§impl<'a> FromReader<'a> for CoreDumpInstance
impl<'a> FromReader<'a> for CoreDumpInstance
source§fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.