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

Method release_ref

crates/c-api/include/wasm.hh:568–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566 template<class T> inline auto get() const -> T;
567
568 auto release_ref() -> own<Ref> {
569 assert(is_ref());
570 auto ref = impl_.ref;
571 impl_.ref = nullptr;
572 return own<Ref>(ref);
573 }
574
575 auto copy() const -> Val {
576 if (is_ref() && impl_.ref != nullptr) {

Callers

nothing calls this directly

Calls 2

assertFunction · 0.85
is_refFunction · 0.85

Tested by

no test coverage detected