Revert "fix(api) Remove the temporary Memory::uint8 method."

This reverts commit 347f4c6890.
This commit is contained in:
Ivan Enderlin
2021-08-30 16:17:05 +02:00
parent 5ae6b98528
commit eb19c98197
2 changed files with 7 additions and 2 deletions

View File

@@ -226,6 +226,11 @@ impl Memory {
unsafe { MemoryView::new(base as _, length as u32) }
}
/// A uint8view
pub fn uint8view(&self) -> MemoryView<u8> {
self.view()
}
pub(crate) fn from_vm_export(store: &Store, vm_memory: VMMemory) -> Self {
Self {
store: store.clone(),