forge::revm::interpreter::instructions::contract

Function resize_memory

pub fn resize_memory(
    interpreter: &mut Interpreter,
    offset: Uint<256, 4>,
    len: Uint<256, 4>,
) -> 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.