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

Method proxyArrayLen

lib/executor/engine/proxy.cpp:317–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317Expect<uint32_t> Executor::proxyArrayLen(Runtime::StackManager &,
318 const RefVariant Ref) noexcept {
319 auto *Inst = Ref.getPtr<Runtime::Instance::ArrayInstance>();
320 if (Inst == nullptr) {
321 return Unexpect(ErrCode::Value::AccessNullArray);
322 }
323 return Inst->getLength();
324}
325
326Expect<void> Executor::proxyArrayFill(Runtime::StackManager &StackMgr,
327 const RefVariant Ref,

Callers

nothing calls this directly

Calls 2

UnexpectFunction · 0.85
getLengthMethod · 0.80

Tested by

no test coverage detected