MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / context_get

Function context_get

crates/guest-rust/src/rt/async_support.rs:657–667  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

655}
656
657fn context_get() -> *mut u8 {
658 extern_wasm! {
659 #[link(wasm_import_module = "$root")]
660 unsafe extern "C" {
661 #[link_name = "[context-get-0]"]
662 fn get() -> *mut u8;
663 }
664 }
665
666 unsafe { get() }
667}
668
669unsafe fn context_set(value: *mut u8) {
670 extern_wasm! {

Callers 1

callbackFunction · 0.85

Calls 1

getFunction · 0.85

Tested by

no test coverage detected