Lines Matching refs:rcbuf
75 * Frees |rcbuf| itself, regardless of its reference cout.
77 void nghttp3_rcbuf_del(nghttp3_rcbuf *rcbuf) {
78 nghttp3_mem_free(rcbuf->mem, rcbuf);
81 void nghttp3_rcbuf_incref(nghttp3_rcbuf *rcbuf) {
82 if (rcbuf->ref == -1) {
86 ++rcbuf->ref;
89 void nghttp3_rcbuf_decref(nghttp3_rcbuf *rcbuf) {
90 if (rcbuf == NULL || rcbuf->ref == -1) {
94 assert(rcbuf->ref > 0);
96 if (--rcbuf->ref == 0) {
97 nghttp3_rcbuf_del(rcbuf);
101 nghttp3_vec nghttp3_rcbuf_get_buf(const nghttp3_rcbuf *rcbuf) {
102 nghttp3_vec res = {rcbuf->base, rcbuf->len};
106 int nghttp3_rcbuf_is_static(const nghttp3_rcbuf *rcbuf) {
107 return rcbuf->ref == -1;