Lines Matching refs:bufs
40 static ssize_t huff_encode_sym(nghttp2_bufs *bufs, size_t *avail_ptr, in huff_encode_sym() argument
49 nghttp2_bufs_fast_orb_hold(bufs, (uint8_t)(code << (rembits - nbits))); in huff_encode_sym()
54 nghttp2_bufs_fast_orb(bufs, (uint8_t)code); in huff_encode_sym()
59 nghttp2_bufs_fast_orb(bufs, (uint8_t)(code >> (nbits - rembits))); in huff_encode_sym()
71 rv = nghttp2_bufs_addb(bufs, (uint8_t)(code >> 24)); in huff_encode_sym()
78 rv = nghttp2_bufs_addb(bufs, (uint8_t)(code >> 16)); in huff_encode_sym()
85 rv = nghttp2_bufs_addb(bufs, (uint8_t)(code >> 8)); in huff_encode_sym()
92 rv = nghttp2_bufs_addb(bufs, (uint8_t)code); in huff_encode_sym()
96 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
100 rv = nghttp2_bufs_addb_hold(bufs, (uint8_t)code); in huff_encode_sym()
104 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
110 nghttp2_bufs_fast_addb_hold(bufs, (uint8_t)code); in huff_encode_sym()
111 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
117 nghttp2_bufs_fast_addb(bufs, (uint8_t)(code >> 24)); in huff_encode_sym()
122 nghttp2_bufs_fast_addb(bufs, (uint8_t)(code >> 16)); in huff_encode_sym()
127 nghttp2_bufs_fast_addb(bufs, (uint8_t)(code >> 8)); in huff_encode_sym()
132 nghttp2_bufs_fast_addb(bufs, (uint8_t)code); in huff_encode_sym()
133 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
137 nghttp2_bufs_fast_addb_hold(bufs, (uint8_t)code); in huff_encode_sym()
138 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
154 int nghttp2_hd_huff_encode(nghttp2_bufs *bufs, const uint8_t *src, in nghttp2_hd_huff_encode() argument
162 avail = nghttp2_bufs_cur_avail(bufs); in nghttp2_hd_huff_encode()
168 nghttp2_bufs_fast_addb_hold(bufs, 0); in nghttp2_hd_huff_encode()
170 rv = nghttp2_bufs_addb_hold(bufs, 0); in nghttp2_hd_huff_encode()
174 avail = nghttp2_bufs_cur_avail(bufs); in nghttp2_hd_huff_encode()
177 rembits = huff_encode_sym(bufs, &avail, (size_t)rembits, sym); in nghttp2_hd_huff_encode()
190 bufs, (uint8_t)(sym->code >> (sym->nbits - (size_t)rembits))); in nghttp2_hd_huff_encode()