pub fn memory_current() -> Option<u64>
memory.current — current charged usage in bytes.
memory.current