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

Method getTopSpan

include/runtime/stackmgr.h:73–75  ·  view source on GitHub ↗

Unsafe getter for the top N value entries of the stack.

Source from the content-addressed store, hash-verified

71
72 /// Unsafe getter for the top N value entries of the stack.
73 Span<Value> getTopSpan(uint32_t N) {
74 return Span<Value>(ValueStack.end() - N, N);
75 }
76
77 /// Push a new value entry to the stack.
78 template <typename T> void push(T &&Val) {

Callers 2

enterFunctionMethod · 0.80
throwExceptionMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected