mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
Revert "fix(api) Remove the temporary Memory::uint8 method."
This reverts commit 347f4c6890.
This commit is contained in:
5
lib/api/src/sys/externals/memory.rs
vendored
5
lib/api/src/sys/externals/memory.rs
vendored
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user