pub fn expansion_cost( new_memory_size: usize, current_memory_size: usize, ) -> Result<u64, VMError>
When a memory expansion is triggered, only the additional bytes of memory must be paid for.