Function resize_memory

Source
pub fn resize_memory(
    interpreter: &mut Interpreter,
    offset: U256,
    len: U256,
) -> Option<Range<usize>>
Expand description

Resize memory and return memory range if successful. Return None if there is not enough gas. And if len is zero return Some(usize::MAX..usize::MAX).