larksuite-oapi/src/main/java/com/larksuite/oapi/okio1_17/GzipSink.java
private void updateCrc(Buffer buffer, long byteCount) {
    for (Segment head = buffer.head; byteCount > 0; head = head.next) {
      int segmentLength = (int) Math.min(byteCount, head.limit - head.pos);
      crc.update(head.data, head.pos, segmentLength);
      byteCount -= segmentLength;
    }
  }
/** Updates the CRC with the given bytes. */
Updates the CRC with the given bytes.
Updates the CRC with the given bytes .
private void updateCrc(Buffer buffer, long byteCount) {
    for (Segment head = buffer.head; byteCount > 0; head = head.next) {
      int segmentLength = (int) Math.min(byteCount, head.limit - head.pos);
      crc.update(head.data, head.pos, segmentLength);
      byteCount -= segmentLength;
    }
  }
private void updateCrc ( Buffer buffer , long byteCount ) { for ( Segment head = buffer . head ; byteCount > 0 ; head = head . next ) { int segmentLength = ( int ) Math . min ( byteCount , head . limit - head . pos ) ; crc . update ( head . data , head . pos , segmentLength ) ; byteCount -= segmentLength ; } }
Updates the CRC with the given bytes.
Updates the CRC with the given bytes .