ModuleName returns the name, if available, for this frame's module
()
| 181 | |
| 182 | // ModuleName returns the name, if available, for this frame's module |
| 183 | func (f *Frame) ModuleName() *string { |
| 184 | ret := C.wasmtime_frame_module_name(f.ptr()) |
| 185 | if ret == nil { |
| 186 | runtime.KeepAlive(f) |
| 187 | return nil |
| 188 | } |
| 189 | str := C.GoStringN(ret.data, C.int(ret.size)) |
| 190 | runtime.KeepAlive(f) |
| 191 | return &str |
| 192 | } |
| 193 | |
| 194 | // ModuleOffset returns offset of this frame's instruction into the original module |
| 195 | func (f *Frame) ModuleOffset() uint { |