class Wasmer::Table

Overview

A Table instance is the runtime representation of a table. It holds a vector of function elements and an optional maximum size, if one was specified in the table type at the table’s definition site.

A table created by the host or in WebAssembly code will be accessible and mutable from both host and WebAssembly.

See also

Specification: https://webassembly.github.io/spec/core/exec/runtime.html#table-instances

Included Modules

Defined in:

wasmer/table.cr

Instance Method Summary

Instance methods inherited from module Wasmer::WithExtern

to_extern : Extern to_extern

Instance Method Detail

def size : UInt32 #

Returns the Table's size

table = instance.table("exported_table").not_nil!
size = table.size

[View source]
def to_extern : Extern #

[View source]
def to_unsafe : Pointer(Int64) #

[View source]