Lines Matching refs:pending

685     s->pending = 0;
751 int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits) {
753 if (pending != Z_NULL)
754 *pending = strm->state->pending;
938 * Put a short in the pending buffer. The 16-bit value is put in MSB order.
948 * Flush as much pending output as possible. All deflate() output, except for
958 len = s->pending;
967 s->pending -= len;
968 if (s->pending == 0) {
974 * Update the header CRC with the bytes s->pending_buf[beg..s->pending - 1].
978 if (s->gzhead->hcrc && s->pending > (beg)) \
980 s->pending - (beg)); \
1003 /* Flush as much pending output as possible */
1004 if (s->pending != 0) {
1008 * more output space, but possibly with both pending and
1061 /* Compression must start with an empty pending buffer */
1063 if (s->pending != 0) {
1087 /* Compression must start with an empty pending buffer */
1089 if (s->pending != 0) {
1115 s->pending);
1122 ulg beg = s->pending; /* start of bytes to update crc */
1124 while (s->pending + left > s->pending_buf_size) {
1125 uInt copy = s->pending_buf_size - s->pending;
1126 zmemcpy(s->pending_buf + s->pending,
1128 s->pending = s->pending_buf_size;
1132 if (s->pending != 0) {
1139 zmemcpy(s->pending_buf + s->pending,
1141 s->pending += left;
1149 ulg beg = s->pending; /* start of bytes to update crc */
1152 if (s->pending == s->pending_buf_size) {
1155 if (s->pending != 0) {
1171 ulg beg = s->pending; /* start of bytes to update crc */
1174 if (s->pending == s->pending_buf_size) {
1177 if (s->pending != 0) {
1192 if (s->pending + 2 > s->pending_buf_size) {
1194 if (s->pending != 0) {
1205 /* Compression must start with an empty pending buffer */
1207 if (s->pending != 0) {
1293 return s->pending != 0 ? Z_OK : Z_STREAM_END;
1716 * copying to the window and the pending buffer instead. Also don't
1724 /* Make a dummy stored block in pending to get the header bytes,
1725 * including any pending bits. This also updates the debugging counts.
1731 s->pending_buf[s->pending - 4] = len;
1732 s->pending_buf[s->pending - 3] = len >> 8;
1733 s->pending_buf[s->pending - 2] = ~len;
1734 s->pending_buf[s->pending - 1] = ~len >> 8;
1791 s->matches++; /* add a pending slide_hash() */
1821 s->matches++; /* add a pending slide_hash() */
1837 * stored block to next_out. Write a stored block to pending instead, if we
1839 * room for the remaining input as a stored block in the pending buffer.
1842 /* maximum stored block length that will fit in pending: */