Lines Matching refs:bitpos
35 int fd, bitpos, len, max; member
55 int pos = bb->bitpos + bits + (bits<0), len; in bitbuf_skip()
64 bb->bitpos = pos; in bitbuf_skip()
72 int bufpos = bb->bitpos>>3; in bitbuf_bit()
79 return (bb->buf[bufpos]>>(bb->bitpos++&7))&1; in bitbuf_bit()
88 int click = bb->bitpos >> 3, blow, blen; in bitbuf_get()
97 blow = bb->bitpos & 7; in bitbuf_get()
103 bb->bitpos += blen; in bitbuf_get()
111 if (!bb->bitpos) return; in bitbuf_flush()
113 xwrite(bb->fd, bb->buf, (bb->bitpos+7)>>3); in bitbuf_flush()
115 bb->bitpos = 0; in bitbuf_flush()
121 int click = bb->bitpos >> 3, blow, blen; in bitbuf_put()
128 blow = bb->bitpos & 7; in bitbuf_put()
132 bb->bitpos += blen; in bitbuf_put()
220 bitbuf_skip(bb, (8-bb->bitpos)&7); in inflate()
227 int pos = bb->bitpos >> 3, bblen = bb->len - pos; in inflate()
343 bitbuf_put(bb, 0, (8-bb->bitpos)&7); in deflate()
469 bitbuf_put(bb, 0, (8-bb->bitpos)&7); in gzip_fd()
498 bitbuf_skip(bb, (8-bb->bitpos)&7); in gunzip_fd()
503 bitbuf_skip(bb, (8-bb->bitpos)&7); in gunzip_fd()