code: public static int writeUUID(byte[] target, int offset, UUID value) {
          writeLong(target, offset, value.getMostSignificantBits());
          writeLong(target, offset + Long.BYTES, value.getLeastSignificantBits());
          return 2 * Long.BYTES;
      }
docs: Writes the given 128-bit UUID to the given byte array at the given offset.
  
  @param target The byte array to write to.
  @param offset The offset within the byte array to write at.
  @param value  The value to write.
  @return The number of bytes written.