larksuite-oapi/src/main/java/com/larksuite/oapi/okio1_17/InflaterSource.java
public final boolean refill() throws IOException {
    if (!inflater.needsInput()) return false;

    releaseInflatedBytes();
    if (inflater.getRemaining() != 0) throw new IllegalStateException("?"); // TODO: possible?

    // If there are compressed bytes in the source, assign them to the inflater.
    if (source.exhausted()) return true;

    // Assign buffer bytes to the inflater.
    Segment head = source.buffer().head;
    bufferBytesHeldByInflater = head.limit - head.pos;
    inflater.setInput(head.data, head.pos, bufferBytesHeldByInflater);
    return false;
  }
/**
   * Refills the inflater with compressed data if it needs input. (And only if
   * it needs input). Returns true if the inflater required input but the source
   * was exhausted.
   */
Refills the inflater with compressed data if it needs input. (And only if
it needs input). Returns true if the inflater required input but the source
was exhausted.
Refills the inflater with compressed data if it needs input . ( And only if it needs input ) . Returns true if the inflater required input but the source was exhausted .
public final boolean refill() throws IOException {
    if (!inflater.needsInput()) return false;
    releaseInflatedBytes();
    if (inflater.getRemaining() != 0) throw new IllegalStateException("?"); 
    if (source.exhausted()) return true;
    Segment head = source.buffer().head;
    bufferBytesHeldByInflater = head.limit - head.pos;
    inflater.setInput(head.data, head.pos, bufferBytesHeldByInflater);
    return false;
  }
public final boolean refill ( ) throws IOException { if ( ! inflater . needsInput ( ) ) return false ; releaseInflatedBytes ( ) ; if ( inflater . getRemaining ( ) != 0 ) throw new IllegalStateException ( "?" ) ; if ( source . exhausted ( ) ) return true ; Segment head = source . buffer ( ) . head ; bufferBytesHeldByInflater = head . limit - head . pos ; inflater . setInput ( head . data , head . pos , bufferBytesHeldByInflater ) ; return false ; }
Refills the inflater with compressed data if it needs input.
Refills the inflater with compressed data if it needs input .
// TODO: possible? // If there are compressed bytes in the source, assign them to the inflater. // Assign buffer bytes to the inflater.