forge::revm::interpreter::gas

Function memory_gas_for_len

pub const fn memory_gas_for_len(len: usize) -> u64
Expand description

Memory expansion cost calculation for a given memory length.