docs: static DirectCompactUnorderedSketch compact(final long[] cache, final boolean empty,
        final short seedHash, final int curCount, final long thetaLong, final WritableMemory dstMem) {
      final int preLongs = computeCompactPreLongs(thetaLong, empty, curCount);
      final int requiredFlags = READ_ONLY_FLAG_MASK | COMPACT_FLAG_MASK;
      final byte flags = (byte) (requiredFlags | (empty ? EMPTY_FLAG_MASK : 0));
      loadCompactMemory(cache, seedHash, curCount, thetaLong, dstMem, flags, preLongs);
      return new DirectCompactUnorderedSketch(dstMem);
    }