public long calculateMemoryExpansion(final long offset, final long length) {
    return memory.calculateNewActiveWords(offset, length);
  }
Returns the memory size for specified memory access.

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