Lines Matching defs:buf
176 /* Write len bytes from buf to file. Return the number of bytes written. If
178 local z_size_t gz_write(gz_statep state, voidpc buf, z_size_t len)
210 memcpy(state->in + have, buf, copy);
213 buf = (const char *)buf + copy;
225 state->strm.next_in = (z_const Bytef *)buf;
243 int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len) {
262 /* write len bytes from buf (the return value will fit in an int) */
263 return (int)gz_write(state, buf, len);
267 z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size, z_size_t nitems,
289 /* write len bytes to buf, return the number of full items written */
290 return len ? gz_write(state, buf, len) / size : 0;
296 unsigned char buf[1];
332 buf[0] = (unsigned char)c;
333 if (gz_write(state, buf, 1) != 1)