Lines Matching defs:bitbuf
34 struct bitbuf {
39 // malloc a struct bitbuf
40 struct bitbuf *bitbuf_init(int fd, int size)
42 struct bitbuf *bb = xzalloc(sizeof(struct bitbuf)+size);
53 int bitbuf_skip(struct bitbuf *bb, int bits)
70 static inline int bitbuf_bit(struct bitbuf *bb)
82 // Fetch the next X bits from the bitbuf, little endian
83 unsigned bitbuf_get(struct bitbuf *bb, int bits)
109 void bitbuf_flush(struct bitbuf *bb)
118 void bitbuf_put(struct bitbuf *bb, int data, int len)
181 // Fetch and decode next huffman coded symbol from bitbuf.
185 static unsigned huff_and_puff(struct bitbuf *bb, struct huff *huff)
201 // Decompress deflated data from bitbuf to dd->outfd.
202 static void inflate(struct deflate *dd, struct bitbuf *bb)
230 // dump bytes until done or end of current bitbuf contents
322 // Deflate from dd->infd to bitbuf
324 static void deflate(struct deflate *dd, struct bitbuf *bb)
405 static int is_gzip(struct bitbuf *bb)
449 struct bitbuf *bb = bitbuf_init(outfd, 4096);
483 struct bitbuf *bb = bitbuf_init(infd, 4096);