File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66//! This code also stores virtual memory IDs and other memory functions.
77use core:: borrow:: Borrow ;
88use ic_cdk:: api:: trap;
9- use ic_cdk :: stable :: WASM_PAGE_SIZE_IN_BYTES ;
9+ const WASM_PAGE_SIZE_IN_BYTES : u64 = 65536 ;
1010use ic_stable_structures:: memory_manager:: { MemoryId , MemoryManager , VirtualMemory } ;
1111use ic_stable_structures:: { DefaultMemoryImpl , Memory } ;
1212use strum:: IntoEnumIterator ;
Original file line number Diff line number Diff line change 11//! Tests for stable memory layout code.
22use super :: * ;
3- use ic_cdk :: api :: stable :: WASM_PAGE_SIZE_IN_BYTES ;
3+ use super :: WASM_PAGE_SIZE_IN_BYTES ;
44use pretty_assertions:: assert_eq;
55use std:: rc:: Rc ;
66
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use core::arch::wasm32::memory_size as wasm_memory_size;
1010#[ cfg( target_arch = "wasm32" ) ]
1111use ic_cdk:: stable:: stable_size;
1212#[ cfg( target_arch = "wasm32" ) ]
13- use ic_cdk :: stable :: WASM_PAGE_SIZE_IN_BYTES ;
13+ const WASM_PAGE_SIZE_IN_BYTES : u64 = 65536 ;
1414const GIBIBYTE : u64 = 1 << 30 ;
1515
1616/// Returns basic stats for frequent monitoring.
You can’t perform that action at this time.
0 commit comments