lib/ruby/truffle/pr-zlib/lib/pr/rbzlib.rb
# Flush as much pending output as possible. All deflate() output goes
# through this function so some applications may wish to modify it
# to avoid allocating a large strm->next_out buffer and copying into it.
# (See also read_buf()).
Flush as much pending output as possible. All deflate() output goes
through this function so some applications may wish to modify it
to avoid allocating a large strm->next_out buffer and copying into it.
Flush as much pending output as possible . All deflate () output goes through this function so some applications may wish to modify it to avoid allocating a large strm - > next_out buffer and copying into it .
def flush_pending(strm)
    s = strm.state
    len = s.pending
    if (len > strm.avail_out)
      len = strm.avail_out
    end
    return if len == 0
    strm.next_out.buffer[strm.next_out.offset,len] = s.pending_out.current[0,len]
    strm.next_out += len
    s.pending_out += len
    strm.total_out += len
    strm.avail_out -= len
    s.pending -= len
    if s.pending == 0
      s.pending_out = Bytef.new(strm.state.pending_buf)
    end
  end
def flush_pending ( strm ) s = strm . state len = s . pending if ( len > strm . avail_out ) len = strm . avail_out end return if len == 0 strm . next_out . buffer [ strm . next_out . offset , len ] = s . pending_out . current [ 0 , len ] strm . next_out += len s . pending_out += len strm . total_out += len strm . avail_out -= len s . pending -= len if s . pending == 0 s . pending_out = Bytef . new ( strm . state . pending_buf ) end end
Flush as much pending output as possible.
Flush as much pending output as possible .
strm
<not_specific>