Lines Matching refs:have

21 local int gz_load(state, buf, len, have)
25 unsigned *have;
30 *have = 0;
32 get = len - *have;
35 ret = read(state->fd, buf + *have, get);
38 *have += (unsigned)ret;
39 } while (*have < len);
82 /* Look for gzip header, set up for inflate or copy. state->x.have must be 0.
152 state->x.have = 0;
162 state->x.have = strm->avail_in;
171 On return, state->x.have and state->x.next point to the just decompressed
173 the next gzip stream or raw data, once state->x.have is depleted. Returns 0
212 state->x.have = had - strm->avail_out;
213 state->x.next = strm->next_out - state->x.have;
223 /* Fetch data and put it in the output buffer. Assumes state->x.have is 0.
243 if (gz_load(state, state->out, state->size << 1, &(state->x.have))
254 } while (state->x.have == 0 && (!state->eof || strm->avail_in));
268 if (state->x.have) {
269 n = GT_OFF(state->x.have) || (z_off64_t)state->x.have > len ?
270 (unsigned)len : state->x.have;
271 state->x.have -= n;
322 if (state->x.have) {
323 if (state->x.have < n)
324 n = state->x.have;
327 state->x.have -= n;
359 n = state->x.have;
360 state->x.have = 0;
465 if (state->x.have) {
466 state->x.have--;
511 if (state->x.have == 0) {
512 state->x.have = 1;
520 /* if no room, give up (must have already done a gzungetc()) */
521 if (state->x.have == (state->size << 1)) {
528 unsigned char *src = state->out + state->x.have;
534 state->x.have++;
577 if (state->x.have == 0 && gz_fetch(state) == -1)
579 if (state->x.have == 0) { /* end of file */
581 break; /* return what we have */
585 n = state->x.have > left ? left : state->x.have;
592 state->x.have -= n;
619 if (state->mode == GZ_READ && state->how == LOOK && state->x.have == 0)