public void writeMemoryRightAligned(
      final long offset, final long length, final Bytes value, final boolean explicitMemoryUpdate) {
    memory.setBytesRightAligned(offset, length, value);
    if (explicitMemoryUpdate) {
      setUpdatedMemoryRightAligned(offset, length, value);
    }
  }
Copy the bytes from the value param into memory at the specified offset. In cases where the
value does not have numBytes bytes the appropriate amount of zero bytes will be added before
writing the value bytes.

@param offset The offset in memory
@param length The length of the bytes to write
@param value The value to write
@param explicitMemoryUpdate true if triggered by a memory opcode, false otherwise
evm/src/main/java/org/hyperledger/besu/evm/frame/MessageFrame.java