Lines Matching refs:tbuf

93   nghttp3_typed_buf *tbuf;
97 tbuf = nghttp3_ringbuf_get(outq, i);
98 if (tbuf->type == NGHTTP3_BUF_TYPE_PRIVATE) {
99 nghttp3_buf_free(&tbuf->buf, mem);
304 static void typed_buf_shared_init(nghttp3_typed_buf *tbuf,
306 nghttp3_typed_buf_init(tbuf, chunk, NGHTTP3_BUF_TYPE_SHARED);
307 tbuf->buf.pos = tbuf->buf.last;
313 nghttp3_typed_buf tbuf;
322 typed_buf_shared_init(&tbuf, chunk);
325 tbuf.buf.last = chunk->last;
327 return nghttp3_stream_outq_add(stream, &tbuf);
335 nghttp3_typed_buf tbuf;
368 typed_buf_shared_init(&tbuf, chunk);
372 tbuf.buf.last = chunk->last;
374 return nghttp3_stream_outq_add(stream, &tbuf);
383 nghttp3_typed_buf tbuf;
393 typed_buf_shared_init(&tbuf, chunk);
397 tbuf.buf.last = chunk->last;
399 return nghttp3_stream_outq_add(stream, &tbuf);
408 nghttp3_typed_buf tbuf;
418 typed_buf_shared_init(&tbuf, chunk);
422 tbuf.buf.last = chunk->last;
424 return nghttp3_stream_outq_add(stream, &tbuf);
449 nghttp3_typed_buf tbuf;
481 typed_buf_shared_init(&tbuf, chunk);
489 tbuf.buf.last = chunk->last;
491 rv = nghttp3_stream_outq_add(stream, &tbuf);
496 nghttp3_typed_buf_init(&tbuf, rbuf, NGHTTP3_BUF_TYPE_PRIVATE);
497 rv = nghttp3_stream_outq_add(stream, &tbuf);
504 tbuf.buf.last = chunk->last;
506 rv = nghttp3_stream_outq_add(stream, &tbuf);
516 nghttp3_typed_buf_init(&tbuf, ebuf, NGHTTP3_BUF_TYPE_PRIVATE);
517 rv = nghttp3_stream_outq_add(qenc_stream, &tbuf);
531 typed_buf_shared_init(&tbuf, chunk);
534 tbuf.buf.last = chunk->last;
536 rv = nghttp3_stream_outq_add(qenc_stream, &tbuf);
558 nghttp3_typed_buf tbuf;
602 outq to schedule stream, so add empty tbuf to outq to
605 nghttp3_typed_buf_init(&tbuf, &buf, NGHTTP3_BUF_TYPE_PRIVATE);
606 return nghttp3_stream_outq_add(stream, &tbuf);
630 typed_buf_shared_init(&tbuf, chunk);
634 tbuf.buf.last = chunk->last;
636 rv = nghttp3_stream_outq_add(stream, &tbuf);
649 nghttp3_typed_buf_init(&tbuf, &buf, NGHTTP3_BUF_TYPE_ALIEN);
650 rv = nghttp3_stream_outq_add(stream, &tbuf);
664 nghttp3_typed_buf tbuf;
685 typed_buf_shared_init(&tbuf, chunk);
689 tbuf.buf.last = chunk->last;
691 return nghttp3_stream_outq_add(stream, &tbuf);
700 const nghttp3_typed_buf *tbuf) {
705 size_t buflen = nghttp3_buf_len(&tbuf->buf);
716 if (dest->type == tbuf->type && dest->type == NGHTTP3_BUF_TYPE_SHARED &&
717 dest->buf.begin == tbuf->buf.begin && dest->buf.last == tbuf->buf.pos) {
725 dest->buf.last = tbuf->buf.last;
727 dest->buf.end = tbuf->buf.end;
742 *dest = *tbuf;
820 nghttp3_typed_buf *tbuf;
825 tbuf = nghttp3_ringbuf_get(outq, i);
826 buflen = nghttp3_buf_len(&tbuf->buf);
832 vec->base = tbuf->buf.pos + offset;
840 tbuf = nghttp3_ringbuf_get(outq, i);
841 vec->base = tbuf->buf.pos;
842 vec->len = nghttp3_buf_len(&tbuf->buf);
859 nghttp3_typed_buf *tbuf;
862 tbuf = nghttp3_ringbuf_get(outq, i);
863 buflen = nghttp3_buf_len(&tbuf->buf);
889 nghttp3_typed_buf *tbuf) {
893 switch (tbuf->type) {
895 nghttp3_buf_free(&tbuf->buf, stream->mem);
904 assert(chunk->begin == tbuf->buf.begin);
905 assert(chunk->end == tbuf->buf.end);
907 if (chunk->last == tbuf->buf.last) {
933 nghttp3_typed_buf *tbuf;
937 tbuf = nghttp3_ringbuf_get(outq, 0);
938 buflen = nghttp3_buf_len(&tbuf->buf);
940 if (tbuf->type == NGHTTP3_BUF_TYPE_ALIEN) {
953 rv = stream_pop_outq_entry(stream, tbuf);