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

Method truncate_to

crates/tinywasm/src/interpreter/stack/call_stack.rs:29–32  ·  view source on GitHub ↗
(&mut self, len: u32)

Source from the content-addressed store, hash-verified

27 }
28
29 pub(crate) fn truncate_to(&mut self, len: u32) {
30 debug_assert!(len as usize <= self.stack.len());
31 self.stack.truncate(len as usize);
32 }
33
34 #[inline(always)]
35 pub(crate) fn pop_frame(&mut self, base: u32) -> Option<CallFrame> {

Callers 4

call_untypedMethod · 0.45
exec_return_32Method · 0.45
exec_return_64Method · 0.45
exec_return_128Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected