Skip to main content

resize_memory

Function resize_memory 

Source
pub fn resize_memory(
    interpreter: &mut Interpreter<impl ITy>,
    gas_params: &GasParams,
    offset: U256,
    len: U256,
) -> Result<Range<usize>, InstructionResult>
Expand description

Resize memory and return range of memory. If len is 0 dont touch memory and return usize::MAX as offset and 0 as length.