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

Method global_get

crates/tinywasm/src/instance.rs:567–569  ·  view source on GitHub ↗

Get the value of a global export by name.

(&self, store: &Store, name: &str)

Source from the content-addressed store, hash-verified

565
566 /// Get the value of a global export by name.
567 pub fn global_get(&self, store: &Store, name: &str) -> Result<WasmValue> {
568 self.global(name)?.get(store)
569 }
570
571 /// Get a global export by name.
572 pub fn global(&self, name: &str) -> Result<Global> {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
globalMethod · 0.45

Tested by

no test coverage detected