MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / locals

Method locals

crates/environ/src/frame_table.rs:567–569  ·  view source on GitHub ↗

Get the local offsets and types.

(&self)

Source from the content-addressed store, hash-verified

565
566 /// Get the local offsets and types.
567 pub fn locals(&self) -> impl Iterator<Item = (FrameStateSlotOffset, FrameValType)> {
568 (0..self.num_locals()).map(|i| self.local(i).unwrap())
569 }
570
571 /// Get the type and offset for a given local.
572 pub fn local(&self, index: usize) -> Option<(FrameStateSlotOffset, FrameValType)> {

Callers 2

computeMethod · 0.45
stack_and_localsMethod · 0.45

Calls 4

mapMethod · 0.45
num_localsMethod · 0.45
unwrapMethod · 0.45
localMethod · 0.45

Tested by

no test coverage detected