MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / FuncIndex

Method FuncIndex

trap.go:164–168  ·  view source on GitHub ↗

FuncIndex returns the function index in the wasm module that this frame represents

()

Source from the content-addressed store, hash-verified

162
163// FuncIndex returns the function index in the wasm module that this frame represents
164func (f *Frame) FuncIndex() uint32 {
165 ret := C.wasm_frame_func_index(f.ptr())
166 runtime.KeepAlive(f)
167 return uint32(ret)
168}
169
170// FuncName returns the name, if available, for this frame's function
171func (f *Frame) FuncName() *string {

Callers 1

TestTrapFramesFunction · 0.80

Calls 1

ptrMethod · 0.95

Tested by 1

TestTrapFramesFunction · 0.64