pub const WASM64_MAX_SIZE: u64 = _; // 18_446_744_073_709_486_080u64
Expand description
Maximum size, in bytes, of 64-bit memories.
Note that the true maximum size of a 64-bit linear memory, in bytes, cannot
be represented in a u64
. That would require a u65 to store 1<<64
.
Despite that no system can actually allocate a full 64-bit linear memory so
this is instead emulated as “what if the kernel fit in a single wasm page
of linear memory”. Shouldn’t ever actually be possible but it provides a
number to serve as an effective maximum.