(strm)
| 18364 | * (See also read_buf()). |
| 18365 | */ |
| 18366 | function flush_pending(strm) { |
| 18367 | var s = strm.state; |
| 18368 | |
| 18369 | //_tr_flush_bits(s); |
| 18370 | var len = s.pending; |
| 18371 | if (len > strm.avail_out) { |
| 18372 | len = strm.avail_out; |
| 18373 | } |
| 18374 | if (len === 0) { return; } |
| 18375 | |
| 18376 | utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out); |
| 18377 | strm.next_out += len; |
| 18378 | s.pending_out += len; |
| 18379 | strm.total_out += len; |
| 18380 | strm.avail_out -= len; |
| 18381 | s.pending -= len; |
| 18382 | if (s.pending === 0) { |
| 18383 | s.pending_out = 0; |
| 18384 | } |
| 18385 | } |
| 18386 | |
| 18387 | |
| 18388 | function flush_block_only(s, last) { |
no outgoing calls
no test coverage detected