Lines Matching defs:chunk

305                                   const nghttp3_buf *chunk) {
306 nghttp3_typed_buf_init(tbuf, chunk, NGHTTP3_BUF_TYPE_SHARED);
312 nghttp3_buf *chunk;
321 chunk = nghttp3_stream_get_chunk(stream);
322 typed_buf_shared_init(&tbuf, chunk);
324 chunk->last = nghttp3_put_varint(chunk->last, (int64_t)stream->type);
325 tbuf.buf.last = chunk->last;
334 nghttp3_buf *chunk;
367 chunk = nghttp3_stream_get_chunk(stream);
368 typed_buf_shared_init(&tbuf, chunk);
370 chunk->last = nghttp3_frame_write_settings(chunk->last, &fr.settings);
372 tbuf.buf.last = chunk->last;
382 nghttp3_buf *chunk;
392 chunk = nghttp3_stream_get_chunk(stream);
393 typed_buf_shared_init(&tbuf, chunk);
395 chunk->last = nghttp3_frame_write_goaway(chunk->last, fr);
397 tbuf.buf.last = chunk->last;
407 nghttp3_buf *chunk;
417 chunk = nghttp3_stream_get_chunk(stream);
418 typed_buf_shared_init(&tbuf, chunk);
420 chunk->last = nghttp3_frame_write_priority_update(chunk->last, fr);
422 tbuf.buf.last = chunk->last;
448 nghttp3_buf *chunk;
480 chunk = nghttp3_stream_get_chunk(stream);
481 typed_buf_shared_init(&tbuf, chunk);
483 chunk->last = nghttp3_frame_write_hd(chunk->last, &hd);
485 chunk->last = nghttp3_cpymem(chunk->last, pbuf.pos, pbuflen);
489 tbuf.buf.last = chunk->last;
503 chunk->last = nghttp3_cpymem(chunk->last, rbuf->pos, rbuflen);
504 tbuf.buf.last = chunk->last;
530 chunk = nghttp3_stream_get_chunk(qenc_stream);
531 typed_buf_shared_init(&tbuf, chunk);
533 chunk->last = nghttp3_cpymem(chunk->last, ebuf->pos, ebuflen);
534 tbuf.buf.last = chunk->last;
560 nghttp3_buf *chunk;
629 chunk = nghttp3_stream_get_chunk(stream);
630 typed_buf_shared_init(&tbuf, chunk);
632 chunk->last = nghttp3_frame_write_hd(chunk->last, &hd);
634 tbuf.buf.last = chunk->last;
662 nghttp3_buf *chunk;
684 chunk = nghttp3_stream_get_chunk(stream);
685 typed_buf_shared_init(&tbuf, chunk);
687 nghttp3_qpack_decoder_write_decoder(qdec, chunk);
689 tbuf.buf.last = chunk->last;
749 nghttp3_buf *chunk;
756 chunk = nghttp3_ringbuf_get(chunks, len - 1);
757 if (nghttp3_buf_left(chunk) >= need) {
783 chunk = nghttp3_ringbuf_push_back(chunks);
784 nghttp3_buf_wrap_init(chunk, p, n);
891 nghttp3_buf *chunk;
902 chunk = nghttp3_ringbuf_get(chunks, 0);
904 assert(chunk->begin == tbuf->buf.begin);
905 assert(chunk->end == tbuf->buf.end);
907 if (chunk->last == tbuf->buf.last) {
908 if (nghttp3_buf_cap(chunk) == NGHTTP3_STREAM_MIN_CHUNK_SIZE) {
910 (nghttp3_chunk *)(void *)chunk->begin);
912 nghttp3_buf_free(chunk, stream->mem);