Lines Matching refs:buf
127 local unsigned syncsearch OF((unsigned FAR *have, unsigned char FAR *buf,
406 # define UPDATE(check, buf, len) \
407 (state->flags ? z_crc32(check, buf, len) : adler32(check, buf, len))
409 # define UPDATE(check, buf, len) adler32(check, buf, len)
1258 Search buf[0..len-1] for the pattern: 0, 0, 0xff, 0xff. Return when found
1268 local unsigned syncsearch(have, buf, len)
1270 unsigned char FAR *buf;
1279 if ((int)(buf[next]) == (got < 2 ? 0 : 0xff))
1281 else if (buf[next])
1296 unsigned char buf[4]; /* to restore bit buffer to byte string */
1311 buf[len++] = (unsigned char)(state->hold);
1316 syncsearch(&(state->have), buf, len);