wasm_dbms_api/memory.rs
1mod encode;
2mod error;
3
4pub use self::encode::{DEFAULT_ALIGNMENT, DataSize, Encode};
5pub(crate) use self::encode::{length_prefix, saturating_size};
6pub use self::error::{DecodeError, MemoryError};
7
8/// Type identifying a memory page number.
9pub type Page = u32;
10/// Type identifying an offset within a memory page.
11pub type PageOffset = u16;
12/// Size type for memory operations.
13pub type MSize = u16;
14/// The result type for memory operations.
15pub type MemoryResult<T> = Result<T, MemoryError>;