Lines Matching refs:avail_in
64 /* Compress whatever is at avail_in and next_in and write to the output file.
84 got = write(state->fd, strm->next_in, strm->avail_in);
85 if (got < 0 || (unsigned)got != strm->avail_in) {
89 strm->avail_in = 0;
142 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
154 strm->avail_in = n;
211 if (strm->avail_in == 0)
213 n = state->size - strm->avail_in;
216 memcpy(strm->next_in + strm->avail_in, buf, n);
217 strm->avail_in += n;
227 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
231 strm->avail_in = len;
270 if (strm->avail_in < state->size) {
271 if (strm->avail_in == 0)
273 strm->next_in[strm->avail_in++] = c;
332 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
365 strm->avail_in = (unsigned)len;
411 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
443 strm->avail_in = (unsigned)len;
516 if (strm->avail_in && gz_comp(state, Z_PARTIAL_FLUSH) == -1)