mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-16 17:18:57 +00:00
doc(deprecated) Document more API between the old and the new one.
This commit is contained in:
10
lib/deprecated/runtime-core/doc/old-api/table.rs
Normal file
10
lib/deprecated/runtime-core/doc/old-api/table.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
struct Table {}
|
||||
|
||||
impl Table {
|
||||
fn new(desc: TableDescriptor) -> Result<Self, CreationError>;
|
||||
fn descriptor(&self) -> TableDescriptor;
|
||||
fn set<T: StorableInTable>(&self, index: u32, element: T) -> Result<(), TableAccessError>;
|
||||
fn size(&self) -> u32;
|
||||
fn grow(&self, delta: u32) -> Result<u32, GrowError>;
|
||||
fn vm_local_table(&mut self) -> *mut LocalTable;
|
||||
}
|
||||
Reference in New Issue
Block a user