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

Method add_func

crates/tinywasm/src/store/mod.rs:519–522  ·  view source on GitHub ↗
(&mut self, func: FunctionInstance)

Source from the content-addressed store, hash-verified

517 }
518
519 pub(crate) fn add_func(&mut self, func: FunctionInstance) -> FuncAddr {
520 self.state.funcs.push(func);
521 self.state.funcs.len() as FuncAddr - 1
522 }
523
524 /// Evaluate a constant expression that's either a i32 or a i64 as a global or a const instruction
525 fn eval_size_const(

Callers 2

from_untypedMethod · 0.80
fromMethod · 0.80

Calls 2

pushMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected