MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_AsyncGetReturnsLength

Function WasmEdge_AsyncGetReturnsLength

lib/api/wasmedge.cpp:3154–3162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3152}
3153
3154WASMEDGE_CAPI_EXPORT uint32_t
3155WasmEdge_AsyncGetReturnsLength(const WasmEdge_Async *Cxt) noexcept {
3156 if (Cxt) {
3157 if (auto Res = Cxt->Async.get()) {
3158 return static_cast<uint32_t>((*Res).size());
3159 }
3160 }
3161 return 0;
3162}
3163
3164WASMEDGE_CAPI_EXPORT WasmEdge_Result
3165WasmEdge_AsyncGet(const WasmEdge_Async *Cxt, WasmEdge_Value *Returns,

Callers 1

TESTFunction · 0.85

Calls 2

getMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68