Lines Matching refs:have
21 local int gz_load(state, buf, len, have) in gz_load() argument
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);
152 state->x.have = 0;
162 state->x.have = strm->avail_in;
212 state->x.have = had - strm->avail_out;
213 state->x.next = strm->next_out - state->x.have;
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;
468 if (state->x.have) {
469 state->x.have--;
513 if (state->x.have == 0) {
514 state->x.have = 1;
523 if (state->x.have == (state->size << 1)) {
530 unsigned char *src = state->out + state->x.have;
536 state->x.have++;
579 if (state->x.have == 0 && gz_fetch(state) == -1)
581 if (state->x.have == 0) { /* end of file */
587 n = state->x.have > left ? left : state->x.have;
594 state->x.have -= n;
621 if (state->mode == GZ_READ && state->how == LOOK && state->x.have == 0)