1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use holochain_core_types::bits_n_pieces::U32_MAX; pub mod allocation; pub mod read; pub mod ribosome; pub mod stack; pub mod write; /// offsets, lengths, etc. pub type MemoryInt = u32; /// encodes allocations as 2x MemoryInt in high/low bits etc. /// must be 2x larger than MemoryInt pub type MemoryBits = u64; /// represents the max MemoryInt in MemoryBits to facilitate gt comparisons const MEMORY_INT_MAX: MemoryBits = U32_MAX;