Lines Matching refs:buf

121 typedef uLong (*check_func) OF((uLong check, Bytef *buf, uInt len));
410 local ulg ct_flush_block OF((deflate_state *s, charf *buf, ulg stored_len,
413 local void ct_stored_block OF((deflate_state *s, charf *buf, ulg stored_len,
537 local int read_buf OF((z_stream *strm, charf *buf, unsigned size));
876 local int read_buf(strm, buf, size)
878 charf *buf;
892 zmemcpy(buf, strm->next_in, len);
1586 local void copy_block OF((deflate_state *s, charf *buf, unsigned len,
2224 local void ct_stored_block(s, buf, stored_len, eof)
2226 charf *buf; /* input block */
2234 copy_block(s, buf, (unsigned)stored_len, 1); /* with header */
2281 local ulg ct_flush_block(s, buf, stored_len, flush)
2283 charf *buf; /* input block, or NULL if too old */
2335 if (buf == (charf*)0) error ("block vanished");
2337 copy_block(buf, (unsigned)stored_len, 0); /* without header */
2355 if (buf != (char*)0) /* force stored block */
2357 if (stored_len+4 <= opt_lenb && buf != (char*)0)
2361 /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
2367 ct_stored_block(s, buf, stored_len, eof);
2572 local void copy_block(s, buf, len, header)
2574 charf *buf; /* the input data */
2592 put_byte(s, *buf++);
4582 #define DO1(buf) {s1 += *buf++; s2 += s1;}
4583 #define DO2(buf) DO1(buf); DO1(buf);
4584 #define DO4(buf) DO2(buf); DO2(buf);
4585 #define DO8(buf) DO4(buf); DO4(buf);
4586 #define DO16(buf) DO8(buf); DO8(buf);
4589 uLong adler32(adler, buf, len)
4591 Bytef *buf;
4598 if (buf == Z_NULL) return 1L;
4604 DO16(buf);
4608 DO1(buf);