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

Method Table

extern.go:91–99  ·  view source on GitHub ↗

Table returns a Table if this export is a table or nil otherwise

()

Source from the content-addressed store, hash-verified

89
90// Table returns a Table if this export is a table or nil otherwise
91func (e *Extern) Table() *Table {
92 ptr := e.ptr()
93 if ptr.kind != C.WASMTIME_EXTERN_TABLE {
94 return nil
95 }
96 ret := mkTable(C.go_wasmtime_extern_table_get(ptr))
97 runtime.KeepAlive(e)
98 return ret
99}
100
101func (e *Extern) AsExtern() C.wasmtime_extern_t {
102 return *e.ptr()

Callers 3

TestInstanceFunction · 0.80
TestLinkerFunction · 0.80
ExampleVal_ExternrefFunction · 0.80

Calls 2

ptrMethod · 0.95
mkTableFunction · 0.85

Tested by 3

TestInstanceFunction · 0.64
TestLinkerFunction · 0.64
ExampleVal_ExternrefFunction · 0.64