We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3621da commit 04bb793Copy full SHA for 04bb793
examples/wasm.rs
@@ -20,7 +20,7 @@ pub unsafe extern "C" fn page_alloc() -> *mut u8 {
20
return ret as *mut u8;
21
}
22
23
- let ret = memory::grow(0, 1);
+ let ret = memory_grow(0, 1);
24
25
// if we failed to allocate a page then return null
26
if ret == -1 {
@@ -39,7 +39,7 @@ pub unsafe extern "C" fn page_free(page: *mut u8) {
39
40
#[no_mangle]
41
pub unsafe extern "C" fn memory_used() -> usize {
42
- (page_size() * (memory::size(0) as u32)) as usize
+ (page_size() * (memory_size(0) as u32)) as usize
43
44
45
fn page_size() -> u32 {
0 commit comments