code: private void updateLargestChunkSoFarSize(@NotNull ByteBuffer outBuffer) {
          int sizeOfThisChunk = (int) (outBuffer.limit() - limitOfLast);
          if (largestChunkSoFar < sizeOfThisChunk)
              largestChunkSoFar = sizeOfThisChunk;
  
          limitOfLast = outBuffer.limit();
      }
docs: calculates the size of each chunk
  
  @param outBuffer the outbound buffer