Lines Matching defs:def
70 /* compress from file to def until provided buffer is full or end of
73 local int partcompress(FILE *in, z_streamp def)
80 def->avail_in = fread(raw, 1, RAWLEN, in);
83 def->next_in = raw;
86 ret = deflate(def, flush);
88 } while (def->avail_out != 0 && flush == Z_NO_FLUSH);
92 /* recompress from inf's input to def's output; the input for inf and
93 the output for def are set in those structures before calling;
96 local int recompress(z_streamp inf, z_streamp def)
113 def->avail_in = RAWLEN - inf->avail_out;
114 def->next_in = raw;
117 ret = deflate(def, flush);
119 } while (ret != Z_STREAM_END && def->avail_out != 0);
134 z_stream def, inf; /* zlib deflate and inflate states */
148 def.zalloc = Z_NULL;
149 def.zfree = Z_NULL;
150 def.opaque = Z_NULL;
151 ret = deflateInit(&def, Z_DEFAULT_COMPRESSION);
156 def.avail_out = size + EXCESS;
157 def.next_out = blk;
158 ret = partcompress(stdin, &def);
163 if (ret == Z_STREAM_END && def.avail_out >= EXCESS) {
165 have = size + EXCESS - def.avail_out;
170 ret = deflateEnd(&def);
189 ret = deflateReset(&def);
195 def.avail_out = size + EXCESS;
196 def.next_out = tmp;
197 ret = recompress(&inf, &def);
204 ret = deflateReset(&def);
210 def.avail_out = size;
211 def.next_out = blk;
212 ret = recompress(&inf, &def);
218 have = size - def.avail_out;
226 ret = deflateEnd(&def);
231 size - have, size, def.total_in);