revm_interpreter::instructions::contract

Function resize_memory

Source
pub fn resize_memory(
    interpreter: &mut Interpreter,
    offset: U256,
    len: U256,
) -> Option<Range<usize>>
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.