Lines Matching refs:have
24 unsigned *have) in gz_load() argument
28 *have = 0; in gz_load()
30 ret = read(state->fd, buf + *have, len - *have); in gz_load()
33 *have += ret; in gz_load()
34 } while (*have < len); in gz_load()
149 state->x.have = 0; in gz_look()
159 state->x.have = strm->avail_in; in gz_look()
209 state->x.have = had - strm->avail_out; in gz_decomp()
210 state->x.next = strm->next_out - state->x.have; in gz_decomp()
240 if (gz_load(state, state->out, state->size << 1, &(state->x.have)) in gz_fetch()
251 } while (state->x.have == 0 && (!state->eof || strm->avail_in)); in gz_fetch()
265 if (state->x.have) { in gz_skip()
266 n = GT_OFF(state->x.have) || (z_off64_t)state->x.have > len ? in gz_skip()
267 (unsigned)len : state->x.have; in gz_skip()
268 state->x.have -= n; in gz_skip()
330 if (state->x.have) { in gzread()
331 n = state->x.have > len ? len : state->x.have; in gzread()
334 state->x.have -= n; in gzread()
366 n = state->x.have; in gzread()
367 state->x.have = 0; in gzread()
405 if (state->x.have) { in gzgetc()
406 state->x.have--; in gzgetc()
451 if (state->x.have == 0) { in gzungetc()
452 state->x.have = 1; in gzungetc()
461 if (state->x.have == (state->size << 1)) { in gzungetc()
468 unsigned char *src = state->out + state->x.have; in gzungetc()
474 state->x.have++; in gzungetc()
517 if (state->x.have == 0 && gz_fetch(state) == -1) in gzgets()
519 if (state->x.have == 0) { /* end of file */ in gzgets()
525 n = state->x.have > left ? left : state->x.have; in gzgets()
532 state->x.have -= n; in gzgets()
559 if (state->mode == GZ_READ && state->how == LOOK && state->x.have == 0) in gzdirect()