Lines Matching defs:buf

75  * Initializes the |buf|. No memory is allocated in this function. Use
78 void nghttp2_buf_init(nghttp2_buf *buf);
81 * Initializes the |buf| and allocates at least |initial| bytes of
90 int nghttp2_buf_init2(nghttp2_buf *buf, size_t initial, nghttp2_mem *mem);
93 * Frees buffer in |buf|.
95 void nghttp2_buf_free(nghttp2_buf *buf, nghttp2_mem *mem);
99 * |new_cap|. If extensions took place, buffer pointers in |buf| will
108 int nghttp2_buf_reserve(nghttp2_buf *buf, size_t new_cap, nghttp2_mem *mem);
111 * Resets pos, last, mark member of |buf| to buf->begin.
113 void nghttp2_buf_reset(nghttp2_buf *buf);
116 * Initializes |buf| using supplied buffer |begin| of length
118 * nghttp2_free() functions for |buf|.
120 void nghttp2_buf_wrap_init(nghttp2_buf *buf, uint8_t *begin, size_t len);
131 nghttp2_buf buf;
141 /* The buffer capacity of each buf. This field may be 0 if
152 reset, buf->pos and buf->last are positioned at buf->begin +
219 * Initializes |bufs| using supplied |veclen| size of buf vector
261 * at bufs->cur->buf.last. A new buffers will be allocated to store
276 * bufs->cur->buf.last. A new buffers will be allocated to store all
291 * buf->last pointer.
297 *(BUFS)->cur->buf.last++ = B; \
302 *(BUFS)->cur->buf.last = B; \
306 * Performs bitwise-OR of |b| at bufs->cur->buf.last. A new buffers
320 * Behaves like nghttp2_bufs_orb(), but does not update buf->last
327 uint8_t **p = &(BUFS)->cur->buf.last; \
334 uint8_t *p = (BUFS)->cur->buf.last; \
393 * the last buf which has nghttp2_buf_len(buf) > 0 without seeing buf
394 * which satisfies nghttp2_buf_len(buf) == 0. If
395 * nghttp2_buf_len(&bufs->cur->buf) == 0 or bufs->cur->next is NULL,
405 #define nghttp2_bufs_cur_avail(BUFS) nghttp2_buf_avail(&(BUFS)->cur->buf)