Change memory api a little

This commit is contained in:
Lachlan Sneff
2019-01-29 12:12:37 -08:00
parent 4c266c6fb9
commit d73c7015fb
5 changed files with 63 additions and 54 deletions

View File

@ -107,7 +107,7 @@ impl LocalBacking {
assert!(memory_desc.min as usize * WASM_PAGE_SIZE >= data_top);
let mem = &memories[local_memory_index];
mem.set(init_base as u32, &init.data).unwrap();
mem.write_many(init_base as u32, &init.data).unwrap();
}
LocalOrImport::Import(imported_memory_index) => {
// Write the initialization data to the memory that