Lines Matching refs:namelen

40 entry_new(const char *name, size_t namelen,  in entry_new()  argument
48 e = calloc(1, sizeof(*e) + namelen + valuelen + 2); in entry_new()
52 memcpy(p, name, namelen); in entry_new()
53 e->namelen = namelen; in entry_new()
54 e->value = p += namelen + 1; /* leave a \0 at the end of name */ in entry_new()
58 Curl_strntolower(e->name, e->name, e->namelen); in entry_new()
71 e2 = calloc(1, sizeof(*e) + e->namelen + valuelen2 + 2); in entry_append()
75 memcpy(p, e->name, e->namelen); in entry_append()
76 e2->namelen = e->namelen; in entry_append()
77 e2->value = p += e->namelen + 1; /* leave a \0 at the end of name */ in entry_append()
148 size_t namelen) in Curl_dynhds_get() argument
152 if(dynhds->hds[i]->namelen == namelen && in Curl_dynhds_get()
153 strncasecompare(dynhds->hds[i]->name, name, namelen)) { in Curl_dynhds_get()
166 const char *name, size_t namelen, in Curl_dynhds_add() argument
175 if(dynhds->strs_len + namelen + valuelen > dynhds->max_strs_size) in Curl_dynhds_add()
178 entry = entry_new(name, namelen, value, valuelen, dynhds->opts); in Curl_dynhds_add()
202 dynhds->strs_len += namelen + valuelen; in Curl_dynhds_add()
222 size_t namelen; in Curl_dynhds_h1_add_line() local
254 namelen = p - line; in Curl_dynhds_h1_add_line()
256 for(i = namelen + 1; i < line_len; ++i, ++p) { in Curl_dynhds_h1_add_line()
269 return Curl_dynhds_add(dynhds, name, namelen, value, valuelen); in Curl_dynhds_h1_add_line()
282 const char *name, size_t namelen) in Curl_dynhds_contains() argument
284 return !!Curl_dynhds_get(dynhds, name, namelen); in Curl_dynhds_contains()
293 const char *name, size_t namelen) in Curl_dynhds_count_name() argument
299 if((namelen == dynhds->hds[i]->namelen) && in Curl_dynhds_count_name()
300 strncasecompare(name, dynhds->hds[i]->name, namelen)) in Curl_dynhds_count_name()
313 const char *name, size_t namelen, in Curl_dynhds_set() argument
316 Curl_dynhds_remove(dynhds, name, namelen); in Curl_dynhds_set()
317 return Curl_dynhds_add(dynhds, name, namelen, value, valuelen); in Curl_dynhds_set()
321 const char *name, size_t namelen) in Curl_dynhds_remove() argument
327 if((namelen == dynhds->hds[i]->namelen) && in Curl_dynhds_remove()
328 strncasecompare(name, dynhds->hds[i]->name, namelen)) { in Curl_dynhds_remove()
331 dynhds->strs_len -= (dynhds->hds[i]->namelen + in Curl_dynhds_remove()
363 (int)dynhds->hds[i]->namelen, dynhds->hds[i]->name, in Curl_dynhds_h1_dprint()
387 nva[i].namelen = e->namelen; in Curl_dynhds_to_nva()