Lines Matching refs:hds_len
97 dynhds->hds_len = dynhds->hds_allc = dynhds->strs_len = 0; in Curl_dynhds_init()
106 if(dynhds->hds && dynhds->hds_len) { in Curl_dynhds_free()
109 for(i = 0; i < dynhds->hds_len; ++i) { in Curl_dynhds_free()
114 dynhds->hds_len = dynhds->hds_allc = dynhds->strs_len = 0; in Curl_dynhds_free()
120 if(dynhds->hds_len) { in Curl_dynhds_reset()
123 for(i = 0; i < dynhds->hds_len; ++i) { in Curl_dynhds_reset()
128 dynhds->hds_len = dynhds->strs_len = 0; in Curl_dynhds_reset()
133 return dynhds->hds_len; in Curl_dynhds_count()
144 return (n < dynhds->hds_len) ? dynhds->hds[n] : NULL; in Curl_dynhds_getn()
151 for(i = 0; i < dynhds->hds_len; ++i) { in Curl_dynhds_get()
173 if(dynhds->max_entries && dynhds->hds_len >= dynhds->max_entries) in Curl_dynhds_add()
182 if(dynhds->hds_len + 1 >= dynhds->hds_allc) { in Curl_dynhds_add()
183 size_t nallc = dynhds->hds_len + 16; in Curl_dynhds_add()
194 dynhds->hds_len * sizeof(struct dynhds_entry *)); in Curl_dynhds_add()
200 dynhds->hds[dynhds->hds_len++] = entry; in Curl_dynhds_add()
232 if(!dynhds->hds_len) in Curl_dynhds_h1_add_line()
241 e = dynhds->hds[dynhds->hds_len-1]; in Curl_dynhds_h1_add_line()
245 dynhds->hds[dynhds->hds_len-1] = e2; in Curl_dynhds_h1_add_line()
296 if(dynhds->hds_len) { in Curl_dynhds_count_name()
298 for(i = 0; i < dynhds->hds_len; ++i) { in Curl_dynhds_count_name()
324 if(dynhds->hds_len) { in Curl_dynhds_remove()
326 for(i = 0; i < dynhds->hds_len; ++i) { in Curl_dynhds_remove()
330 --dynhds->hds_len; in Curl_dynhds_remove()
334 len = dynhds->hds_len - i; /* remaining entries */ in Curl_dynhds_remove()
358 if(!dynhds->hds_len) in Curl_dynhds_h1_dprint()
361 for(i = 0; i < dynhds->hds_len; ++i) { in Curl_dynhds_h1_dprint()
376 nghttp2_nv *nva = calloc(1, sizeof(nghttp2_nv) * dynhds->hds_len); in Curl_dynhds_to_nva()
383 for(i = 0; i < dynhds->hds_len; ++i) { in Curl_dynhds_to_nva()
392 *pcount = dynhds->hds_len; in Curl_dynhds_to_nva()