Skip to content

No API to manipulate table entries #5

@roman-kashitsyn

Description

@roman-kashitsyn

The table API looks pretty much as a placeholder now, one can't do anything useful with it:

type Table
func (t *Table) AsExtern() *Extern
func (t *Table) Size() uint32
func (t *Table) Type() *TableType

The Rust API is actually useful. Examples of missing methods:

pub fn get(&self, index: u32) -> Option<Val>

pub fn set(&self, index: u32, val: Val) -> Result<()>

pub fn grow(&self, delta: u32, init: Val) -> Result<u32>

pub fn copy(
    dst_table: &Table,
    dst_index: u32,
    src_table: &Table,
    src_index: u32,
    len: u32
) -> Result<()>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions