docs: static final CompactSketch heapify1to3(final Memory srcMem, final long seed) {
      final int memCap = (int) srcMem.getCapacity();
  
      final short seedHash = Util.computeSeedHash(seed);
  
      if (memCap <= 24) { //return empty
        return HeapCompactOrderedSketch
            .compact(new long[0], true, seedHash, 0, Long.MAX_VALUE);
      }
  
      final int curCount = srcMem.getInt(RETAINED_ENTRIES_INT);
  
      final int mdLongs = 3;
      final int reqBytesIn = (curCount + mdLongs) << 3;
      validateInputSize(reqBytesIn, memCap);
  
      final long thetaLong = srcMem.getLong(THETA_LONG);
  
      final long[] compactOrderedCache = new long[curCount];
      srcMem.getLongArray(24, compactOrderedCache, 0, curCount);
      return HeapCompactOrderedSketch
          .compact(compactOrderedCache, false, seedHash, curCount, thetaLong);
    }