Size returns the size of this table in units of elements.
(store Storelike)
| 41 | |
| 42 | // Size returns the size of this table in units of elements. |
| 43 | func (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. |