MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / copy

Method copy

crates/c-api/include/wasmtime/component/val.hh:296–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294 }
295
296 void copy(const Raw &other) {
297 if (other) {
298 wasmtime_component_val_t clone;
299 wasmtime_component_val_clone(other, &clone);
300 raw = wasmtime_component_val_new(&clone);
301 } else {
302 raw = nullptr;
303 }
304 }
305
306 void destroy() { wasmtime_component_val_free(raw); }
307

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected