MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / set

Method set

crates/tinywasm/src/interpreter/stack/value_stack.rs:74–79  ·  view source on GitHub ↗
(&mut self, index: usize, value: T)

Source from the content-addressed store, hash-verified

72
73 #[inline(always)]
74 pub(crate) fn set(&mut self, index: usize, value: T) {
75 *self.data.get_mut(index).unwrap_or_else(|| {
76 cold_path();
77 unreachable!("Stack index out of bounds, this is a bug");
78 }) = value;
79 }
80
81 #[inline(always)]
82 pub(crate) fn truncate_keep(&mut self, n: usize, end_keep: usize) {

Callers 1

exec_table_setMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected