Lines Matching refs:rb
53 * nghttp3_ringbuf_init initializes |rb|. |nmemb| is the number of
63 int nghttp3_ringbuf_init(nghttp3_ringbuf *rb, size_t nmemb, size_t size,
67 * nghttp3_ringbuf_free frees resources allocated for |rb|. This
68 * function does not free the memory pointed by |rb|.
70 void nghttp3_ringbuf_free(nghttp3_ringbuf *rb);
76 the last element is silently overwritten, and rb->len remains
78 void *nghttp3_ringbuf_push_front(nghttp3_ringbuf *rb);
84 element is silently overwritten, and rb->len remains unchanged. */
85 void *nghttp3_ringbuf_push_back(nghttp3_ringbuf *rb);
88 * nghttp3_ringbuf_pop_front removes first element in |rb|.
90 void nghttp3_ringbuf_pop_front(nghttp3_ringbuf *rb);
93 * nghttp3_ringbuf_pop_back removes the last element in |rb|.
95 void nghttp3_ringbuf_pop_back(nghttp3_ringbuf *rb);
99 void nghttp3_ringbuf_resize(nghttp3_ringbuf *rb, size_t len);
103 void *nghttp3_ringbuf_get(nghttp3_ringbuf *rb, size_t offset);
108 /* nghttp3_ringbuf_full returns nonzero if |rb| is full. */
109 int nghttp3_ringbuf_full(nghttp3_ringbuf *rb);
111 int nghttp3_ringbuf_reserve(nghttp3_ringbuf *rb, size_t nmemb);