Lines Matching refs:nva
65 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_headers_init() argument
68 frame->nva = nva; in nghttp2_frame_headers_init()
80 nghttp2_nv_array_del(frame->nva, mem); in nghttp2_frame_headers_free()
116 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_push_promise_init() argument
119 frame->nva = nva; in nghttp2_frame_push_promise_init()
127 nghttp2_nv_array_del(frame->nva, mem); in nghttp2_frame_push_promise_free()
352 rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, frame->nva, frame->nvlen); in nghttp2_frame_pack_headers()
404 frame->nva = NULL; in nghttp2_frame_unpack_headers_payload()
550 rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, frame->nva, frame->nvlen); in nghttp2_frame_pack_push_promise()
574 frame->nva = NULL; in nghttp2_frame_unpack_push_promise_payload()
923 void nghttp2_nv_array_del(nghttp2_nv *nva, nghttp2_mem *mem) { in nghttp2_nv_array_del() argument
924 nghttp2_mem_free(mem, nva); in nghttp2_nv_array_del()
972 void nghttp2_nv_array_sort(nghttp2_nv *nva, size_t nvlen) { in nghttp2_nv_array_sort() argument
973 qsort(nva, nvlen, sizeof(nghttp2_nv), nv_compar); in nghttp2_nv_array_sort()
976 int nghttp2_nv_array_copy(nghttp2_nv **nva_ptr, const nghttp2_nv *nva, in nghttp2_nv_array_copy() argument
991 if ((nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_NAME) == 0) { in nghttp2_nv_array_copy()
992 buflen += nva[i].namelen + 1; in nghttp2_nv_array_copy()
994 if ((nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_VALUE) == 0) { in nghttp2_nv_array_copy()
995 buflen += nva[i].valuelen + 1; in nghttp2_nv_array_copy()
1011 p->flags = nva[i].flags; in nghttp2_nv_array_copy()
1013 if (nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_NAME) { in nghttp2_nv_array_copy()
1014 p->name = nva[i].name; in nghttp2_nv_array_copy()
1015 p->namelen = nva[i].namelen; in nghttp2_nv_array_copy()
1017 if (nva[i].namelen) { in nghttp2_nv_array_copy()
1018 memcpy(data, nva[i].name, nva[i].namelen); in nghttp2_nv_array_copy()
1021 p->namelen = nva[i].namelen; in nghttp2_nv_array_copy()
1024 data += nva[i].namelen + 1; in nghttp2_nv_array_copy()
1027 if (nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_VALUE) { in nghttp2_nv_array_copy()
1028 p->value = nva[i].value; in nghttp2_nv_array_copy()
1029 p->valuelen = nva[i].valuelen; in nghttp2_nv_array_copy()
1031 if (nva[i].valuelen) { in nghttp2_nv_array_copy()
1032 memcpy(data, nva[i].value, nva[i].valuelen); in nghttp2_nv_array_copy()
1035 p->valuelen = nva[i].valuelen; in nghttp2_nv_array_copy()
1037 data += nva[i].valuelen + 1; in nghttp2_nv_array_copy()