Lines Matching refs:size_t
112 static int memeq(const void *s1, const void *s2, size_t n) {
120 static int32_t lookup_token(const uint8_t *name, size_t namelen) {
519 size_t i;
593 static int hd_ringbuf_init(nghttp2_hd_ringbuf *ringbuf, size_t bufsize,
595 size_t size;
609 size_t idx) {
614 static int hd_ringbuf_reserve(nghttp2_hd_ringbuf *ringbuf, size_t bufsize,
616 size_t i;
617 size_t size;
640 size_t i;
702 size_t max_deflate_dynamic_table_size,
782 static size_t entry_room(size_t namelen, size_t valuelen) {
794 static size_t count_encoded_length(size_t n, size_t prefix) {
795 size_t k = (size_t)((1 << prefix) - 1);
796 size_t len = 0;
811 static size_t encode_length(uint8_t *buf, size_t n, size_t prefix) {
812 size_t k = (size_t)((1 << prefix) - 1);
833 return (size_t)(buf - begin);
853 static ssize_t decode_length(uint32_t *res, size_t *shift_ptr, int *fin,
854 uint32_t initial, size_t shift, const uint8_t *in,
855 const uint8_t *last, size_t prefix) {
917 static int emit_table_size(nghttp2_bufs *bufs, size_t table_size) {
920 size_t blocklen;
945 static int emit_indexed_block(nghttp2_bufs *bufs, size_t idx) {
947 size_t blocklen;
971 static int emit_string(nghttp2_bufs *bufs, const uint8_t *str, size_t len) {
975 size_t blocklen;
976 size_t enclen;
1032 static int emit_indname_block(nghttp2_bufs *bufs, size_t idx,
1036 size_t blocklen;
1038 size_t prefixlen;
1105 size_t room;
1114 size_t idx = context->hd_table.len - 1;
1231 size_t idx = context->hd_table.len - 1;
1246 nghttp2_hd_deflater *deflater, size_t settings_max_dynamic_table_size) {
1247 size_t next_bufsize = nghttp2_min(settings_max_dynamic_table_size,
1262 nghttp2_hd_inflater *inflater, size_t settings_max_dynamic_table_size) {
1297 static size_t get_max_index(nghttp2_hd_context *context) {
1301 nghttp2_hd_nv nghttp2_hd_table_get(nghttp2_hd_context *context, size_t idx) {
1316 size_t idx) {
1384 rv = emit_indexed_block(bufs, (size_t)idx);
1400 hd_nv.name = nghttp2_hd_table_get(&deflater->ctx, (size_t)idx).name;
1431 rv = emit_indname_block(bufs, (size_t)idx, nv, indexing_mode);
1442 size_t nvlen) {
1443 size_t i;
1451 size_t min_hd_table_bufsize_max;
1492 size_t buflen, const nghttp2_nv *nv,
1493 size_t nvlen) {
1524 const nghttp2_vec *vec, size_t veclen,
1525 const nghttp2_nv *nv, size_t nvlen) {
1529 size_t buflen;
1556 size_t nghttp2_hd_deflate_bound(nghttp2_hd_deflater *deflater,
1557 const nghttp2_nv *nva, size_t nvlen) {
1558 size_t n = 0;
1559 size_t i;
1584 size_t deflate_hd_table_bufsize_max) {
1590 size_t deflate_hd_table_bufsize_max,
1648 size_t prefix, size_t maxlen) {
1692 if ((size_t)(last - in) >= inflater->left) {
1697 (size_t)(last - in), fin);
1708 inflater->left -= (size_t)readlen;
1726 size_t len = nghttp2_min((size_t)(last - in), inflater->left);
1837 int *inflate_flags, uint8_t *in, size_t inlen,
1845 const uint8_t *in, size_t inlen, int in_final) {
1871 const uint8_t *in, size_t inlen,
1958 size_t prefixlen;
2285 int nghttp2_hd_emit_indname_block(nghttp2_bufs *bufs, size_t idx,
2296 int nghttp2_hd_emit_table_size(nghttp2_bufs *bufs, size_t table_size) {
2300 ssize_t nghttp2_hd_decode_length(uint32_t *res, size_t *shift_ptr, int *fin,
2301 uint32_t initial, size_t shift, uint8_t *in,
2302 uint8_t *last, size_t prefix) {
2307 size_t idx) {
2321 size_t nghttp2_hd_deflate_get_num_table_entries(nghttp2_hd_deflater *deflater) {
2326 nghttp2_hd_deflate_get_table_entry(nghttp2_hd_deflater *deflater, size_t idx) {
2330 size_t
2335 size_t
2340 size_t nghttp2_hd_inflate_get_num_table_entries(nghttp2_hd_inflater *inflater) {
2345 nghttp2_hd_inflate_get_table_entry(nghttp2_hd_inflater *inflater, size_t idx) {
2349 size_t
2354 size_t