Lines Matching defs:buf
20 local int gz_load(state, buf, len, have)
22 unsigned char *buf;
30 ret = read(state->fd, buf + *have, len - *have);
288 int ZEXPORT gzread(file, buf, len)
290 voidp buf;
326 /* get len bytes to buf, or less than len if at the end */
332 memcpy(buf, state->x.next, n);
356 if (gz_load(state, (unsigned char *)buf, len, &n) == -1)
363 strm->next_out = (unsigned char *)buf;
372 buf = (char *)buf + n;
391 unsigned char buf[1];
412 ret = gzread(file, buf, 1);
413 return ret < 1 ? -1 : buf[0];
483 char * ZEXPORT gzgets(file, buf, len)
485 char *buf;
494 if (file == NULL || buf == NULL || len < 1)
513 str = buf;
531 memcpy(buf, state->x.next, n);
536 buf += n;
540 if (buf == str)
542 buf[0] = 0;