MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / global_get

Method global_get

crates/tinywasm/src/func.rs:284–286  ·  view source on GitHub ↗

Get the value of a global export.

(&self, name: &str)

Source from the content-addressed store, hash-verified

282
283 /// Get the value of a global export.
284 pub fn global_get(&self, name: &str) -> Result<WasmValue> {
285 self.module().global_get(self.store, name)
286 }
287
288 /// Get a global export.
289 pub fn global(&self, name: &str) -> Result<crate::Global> {

Callers 1

run_fileMethod · 0.45

Calls 1

moduleMethod · 0.80

Tested by

no test coverage detected