Lines Matching defs:deflate
0 /* deflate.c - deflate/inflate code for gzip and friends
5 * See RFCs 1950 (zlib), 1951 (deflate), and 1952 (gzip)
13 struct deflate {
20 void (*crcfunc)(struct deflate *dd, char *data, unsigned len);
138 static void output_byte(struct deflate *dd, char sym)
202 static void inflate(struct deflate *dd, struct bitbuf *bb)
323 // For deflate, dd->len = input read, dd->pos = input consumed
324 static void deflate(struct deflate *dd, struct bitbuf *bb)
360 // Allocate memory for deflate/inflate.
361 static struct deflate *init_deflate(int compress)
364 struct deflate *dd = xmalloc(sizeof(struct deflate)+32768*(compress ? 4 : 1));
366 memset(dd, 0, sizeof(struct deflate));
423 void gzip_crc(struct deflate *dd, char *data, unsigned len)
450 struct deflate *dd = init_deflate(1);
454 // 2 ID bytes (1F, 8b), gzip method byte (8=deflate), FLAG byte (none),
465 deflate(dd, bb);
484 struct deflate *dd = init_deflate(0);