Adding imported memories

This commit is contained in:
Brandon Fish
2019-01-12 14:34:23 -06:00
parent 8d2dacaba3
commit 8a0ea0b66d
3 changed files with 83 additions and 10 deletions

View File

@ -52,6 +52,10 @@ impl ModuleInner {
pub(crate) fn is_imported_function(&self, func_index: FuncIndex) -> bool {
func_index.index() < self.imported_functions.len()
}
pub(crate) fn is_imported_memory(&self, memory_index: MemoryIndex) -> bool {
memory_index.index() < self.imported_memories.len()
}
}
impl Deref for Module {