public void setWord(final long location, final Bytes32 bytes) {
    final int start = asByteIndex(location);
    ensureCapacityForBytes(start, Bytes32.SIZE);
    System.arraycopy(bytes.toArrayUnsafe(), 0, memBytes, start, Bytes32.SIZE);
  }
Sets a 32-bytes word in memory at the provided location.

<p>Note that this method will extend memory to accommodate the location assigned and bytes
copied and so never fails.

@param location the location at which to start setting the bytes.
@param bytes the 32 bytes to copy at {@code location}.
evm/src/main/java/org/hyperledger/besu/evm/frame/Memory.java