public void expandMemory(final long offset, final long length) {
    memory.ensureCapacityForBytes(offset, length);
  }
Expands memory to accommodate the specified memory access.

@param offset The offset in memory
@param length The length of the memory access
evm/src/main/java/org/hyperledger/besu/evm/frame/MessageFrame.java