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

Method Size

table.go:43–47  ·  view source on GitHub ↗

Size returns the size of this table in units of elements.

(store Storelike)

Source from the content-addressed store, hash-verified

41
42// Size returns the size of this table in units of elements.
43func (t *Table) Size(store Storelike) uint64 {
44 ret := C.wasmtime_table_size(store.Context(), &t.val)
45 runtime.KeepAlive(store)
46 return uint64(ret)
47}
48
49// Grow grows this table by the number of units specified, using the
50// specified initializer value for new slots.

Callers 2

TestTableFunction · 0.95
ExampleMemoryFunction · 0.45

Calls 1

ContextMethod · 0.65

Tested by 2

TestTableFunction · 0.76
ExampleMemoryFunction · 0.36