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

Method global

crates/tinywasm/src/func.rs:289–291  ·  view source on GitHub ↗

Get a global export.

(&self, name: &str)

Source from the content-addressed store, hash-verified

287
288 /// Get a global export.
289 pub fn global(&self, name: &str) -> Result<crate::Global> {
290 self.module().global(name)
291 }
292
293 /// Set the value of a mutable global export.
294 pub fn global_set(&mut self, name: &str, value: WasmValue) -> Result<()> {

Callers 1

Calls 1

moduleMethod · 0.80

Tested by 1