docs: private static void listData(final Memory mem, final long offsetBytes, final long lengthInts,
        final StringBuilder sb) {
      final long memCap = mem.getCapacity();
      final long expectedCap = offsetBytes + (4L * lengthInts);
      checkCapacity(memCap, expectedCap);
      for (int i = 0; i < lengthInts; i++) {
        sb.append(String.format(fmt, i, mem.getInt(offsetBytes + (4L * i)))).append(LS);
      }
    }