Lines Matching defs:bufs

297  * This function assumes bufs->cur points to the last buf chain of the
305 static int frame_pack_headers_shared(nghttp2_bufs *bufs,
311 buf = &bufs->head->buf;
321 if (bufs->head != bufs->cur) {
328 if (bufs->head != bufs->cur) {
334 ce = bufs->cur;
336 for (ci = bufs->head->next; ci != ce; ci = ci->next) {
361 int nghttp2_frame_pack_headers(nghttp2_bufs *bufs, nghttp2_headers *frame,
367 assert(bufs->head == bufs->cur);
371 buf = &bufs->cur->buf;
377 rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, frame->nva, frame->nvlen);
394 frame->hd.length = nghttp2_bufs_len(bufs);
396 return frame_pack_headers_shared(bufs, &frame->hd);
433 void nghttp2_frame_pack_priority(nghttp2_bufs *bufs, nghttp2_priority *frame) {
436 assert(bufs->head == bufs->cur);
438 buf = &bufs->head->buf;
456 void nghttp2_frame_pack_rst_stream(nghttp2_bufs *bufs,
460 assert(bufs->head == bufs->cur);
462 buf = &bufs->head->buf;
479 int nghttp2_frame_pack_settings(nghttp2_bufs *bufs, nghttp2_settings *frame) {
482 assert(bufs->head == bufs->cur);
484 buf = &bufs->head->buf;
554 int nghttp2_frame_pack_push_promise(nghttp2_bufs *bufs,
561 assert(bufs->head == bufs->cur);
563 buf = &bufs->cur->buf;
569 rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, frame->nva, frame->nvlen);
584 frame->hd.length = nghttp2_bufs_len(bufs);
586 return frame_pack_headers_shared(bufs, &frame->hd);
597 void nghttp2_frame_pack_ping(nghttp2_bufs *bufs, nghttp2_ping *frame) {
600 assert(bufs->head == bufs->cur);
602 buf = &bufs->head->buf;
619 int nghttp2_frame_pack_goaway(nghttp2_bufs *bufs, nghttp2_goaway *frame) {
623 assert(bufs->head == bufs->cur);
625 buf = &bufs->head->buf;
637 rv = nghttp2_bufs_add(bufs, frame->opaque_data, frame->opaque_data_len);
691 void nghttp2_frame_pack_window_update(nghttp2_bufs *bufs,
695 assert(bufs->head == bufs->cur);
697 buf = &bufs->head->buf;
715 void nghttp2_frame_pack_altsvc(nghttp2_bufs *bufs, nghttp2_extension *frame) {
725 buf = &bufs->head->buf;
737 rv = nghttp2_bufs_add(bufs, altsvc->origin, altsvc->origin_len);
741 rv = nghttp2_bufs_add(bufs, altsvc->field_value, altsvc->field_value_len);
789 int nghttp2_frame_pack_origin(nghttp2_bufs *bufs, nghttp2_extension *frame) {
797 buf = &bufs->head->buf;
891 void nghttp2_frame_pack_priority_update(nghttp2_bufs *bufs,
902 buf = &bufs->head->buf;
913 rv = nghttp2_bufs_add(bufs, priority_update->field_value,
1174 void nghttp2_frame_add_pad(nghttp2_bufs *bufs, nghttp2_frame_hd *hd,
1185 * We have arranged bufs like this:
1204 buf = &bufs->head->buf;