Lines Matching refs:bitbuf
140 struct bitbuf {
145 // malloc a struct bitbuf
146 struct bitbuf *bitbuf_init(int fd, int size)
148 struct bitbuf *bb = xzalloc(sizeof(struct bitbuf)+size);
157 void bitbuf_skip(struct bitbuf *bb, int bits)
170 static inline int bitbuf_bit(struct bitbuf *bb)
182 // Fetch the next X bits from the bitbuf, little endian
183 unsigned bitbuf_get(struct bitbuf *bb, int bits)
206 void bitbuf_flush(struct bitbuf *bb)
215 void bitbuf_put(struct bitbuf *bb, int data, int len)
277 // Fetch and decode next huffman coded symbol from bitbuf.
281 static unsigned huff_and_puff(struct bitbuf *bb, struct huff *huff)
297 // Decompress deflated data from bitbuf to TT.outfd.
298 static void inflate(struct bitbuf *bb)
325 // dump bytes until done or end of current bitbuf contents
417 // Deflate from TT.infd to bitbuf
419 static void deflate(struct bitbuf *bb)
497 static int is_gzip(struct bitbuf *bb)
528 struct bitbuf *bb = bitbuf_init(1, sizeof(toybuf));
556 struct bitbuf *bb = bitbuf_init(fd, sizeof(toybuf));