mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Fix compilation
This commit is contained in:
parent
cee248ae89
commit
308d9dde3f
@ -132,8 +132,7 @@ impl Memory {
|
||||
pub fn view<T: ValueType>(&self) -> MemoryView<T> {
|
||||
let vm::LocalMemory {
|
||||
base,
|
||||
bound: _,
|
||||
memory: _,
|
||||
..
|
||||
} = unsafe { *self.vm_local_memory() };
|
||||
|
||||
let length = self.size().bytes().0 / mem::size_of::<T>();
|
||||
@ -294,14 +293,6 @@ impl SharedMemory {
|
||||
pub fn size(&self) -> Pages {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub unsafe fn as_slice(&self) -> &[u8] {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub unsafe fn as_slice_mut(&self) -> &mut [u8] {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
impl Clone for SharedMemory {
|
||||
|
Loading…
Reference in New Issue
Block a user