Lines Matching defs:buf
1100 * reserve_buf_internal ensures that |buf| contains at least
1102 * succeeds, nghttp2_buf_left(buf) >= extra_size holds. |min_size| is
1112 static int reserve_buf_internal(nghttp3_buf *buf, size_t extra_size,
1114 size_t left = nghttp3_buf_left(buf);
1121 need = nghttp3_buf_cap(buf) + extra_size - left;
1126 return nghttp3_buf_reserve(buf, n, mem);
1129 static int reserve_buf_small(nghttp3_buf *buf, size_t extra_size,
1131 return reserve_buf_internal(buf, extra_size, 32, mem);
1134 static int reserve_buf(nghttp3_buf *buf, size_t extra_size,
1136 return reserve_buf_internal(buf, extra_size, 32, mem);
1801 nghttp3_buf *buf, uint8_t fb,
1818 rv = reserve_buf(buf, len, encoder->ctx.mem);
1823 p = buf->last;
1840 assert((size_t)(p - buf->last) == len);
1842 buf->last = p;
1893 nghttp3_buf *buf, uint8_t fb,
1917 rv = reserve_buf(buf, len, encoder->ctx.mem);
1922 p = buf->last;
1949 assert((size_t)(p - buf->last) == len);
1951 buf->last = p;
2594 uint8_t *nghttp3_qpack_put_varint(uint8_t *buf, uint64_t n, size_t prefix) {
2597 *buf = (uint8_t)(*buf & ~k);
2600 *buf = (uint8_t)(*buf | n);
2601 return buf + 1;
2604 *buf = (uint8_t)(*buf | k);
2605 ++buf;
2610 *buf++ = (uint8_t)((1 << 7) | (n & 0x7f));
2613 *buf++ = (uint8_t)n;
2615 return buf;