Add tables to the store, returning their addresses in the store
(&mut self, tables: &[TableType])
| 339 | |
| 340 | /// Add tables to the store, returning their addresses in the store |
| 341 | pub(crate) fn init_tables(&mut self, tables: &[TableType]) -> impl ExactSizeIterator<Item = TableAddr> { |
| 342 | let start = self.state.tables.len() as TableAddr; |
| 343 | self.state.tables.extend(tables.iter().map(|table| TableInstance::new(table.clone()))); |
| 344 | start..start + tables.len() as TableAddr |
| 345 | } |
| 346 | |
| 347 | /// Add memories to the store, returning their addresses in the store |
| 348 | pub(crate) fn init_memories(&mut self, memories: &[MemoryType]) -> Result<impl ExactSizeIterator<Item = MemAddr>> { |
no test coverage detected