Lines Matching refs:pending
651 s->pending = 0;
718 int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits) {
720 if (pending != Z_NULL)
721 *pending = strm->state->pending;
906 * Put a short in the pending buffer. The 16-bit value is put in MSB order.
917 * Flush as much pending output as possible. All deflate() output, except for
928 len = s->pending;
937 s->pending -= len;
938 if (s->pending == 0) {
944 * Update the header CRC with the bytes s->pending_buf[beg..s->pending - 1].
948 if (s->gzhead->hcrc && s->pending > (beg)) \
950 s->pending - (beg)); \
973 /* Flush as much pending output as possible */
974 if (s->pending != 0) {
978 * more output space, but possibly with both pending and
1031 /* Compression must start with an empty pending buffer */
1033 if (s->pending != 0) {
1057 /* Compression must start with an empty pending buffer */
1059 if (s->pending != 0) {
1085 s->pending);
1092 ulg beg = s->pending; /* start of bytes to update crc */
1094 while (s->pending + left > s->pending_buf_size) {
1095 uInt copy = s->pending_buf_size - s->pending;
1096 zmemcpy(s->pending_buf + s->pending,
1098 s->pending = s->pending_buf_size;
1102 if (s->pending != 0) {
1109 zmemcpy(s->pending_buf + s->pending,
1111 s->pending += left;
1119 ulg beg = s->pending; /* start of bytes to update crc */
1122 if (s->pending == s->pending_buf_size) {
1125 if (s->pending != 0) {
1141 ulg beg = s->pending; /* start of bytes to update crc */
1144 if (s->pending == s->pending_buf_size) {
1147 if (s->pending != 0) {
1162 if (s->pending + 2 > s->pending_buf_size) {
1164 if (s->pending != 0) {
1175 /* Compression must start with an empty pending buffer */
1177 if (s->pending != 0) {
1262 return s->pending != 0 ? Z_OK : Z_STREAM_END;
1671 * copying to the window and the pending buffer instead. Also don't
1679 /* Make a dummy stored block in pending to get the header bytes,
1680 * including any pending bits. This also updates the debugging counts.
1686 s->pending_buf[s->pending - 4] = len;
1687 s->pending_buf[s->pending - 3] = len >> 8;
1688 s->pending_buf[s->pending - 2] = ~len;
1689 s->pending_buf[s->pending - 1] = ~len >> 8;
1746 s->matches++; /* add a pending slide_hash() */
1776 s->matches++; /* add a pending slide_hash() */
1792 * stored block to next_out. Write a stored block to pending instead, if we
1794 * room for the remaining input as a stored block in the pending buffer.
1797 /* maximum stored block length that will fit in pending: */