Lines Matching refs:rcbuf
69 * Frees |rcbuf| itself, regardless of its reference cout.
71 void nghttp2_rcbuf_del(nghttp2_rcbuf *rcbuf) {
72 nghttp2_mem_free2(rcbuf->free, rcbuf, rcbuf->mem_user_data);
75 void nghttp2_rcbuf_incref(nghttp2_rcbuf *rcbuf) {
76 if (rcbuf->ref == -1) {
80 ++rcbuf->ref;
83 void nghttp2_rcbuf_decref(nghttp2_rcbuf *rcbuf) {
84 if (rcbuf == NULL || rcbuf->ref == -1) {
88 assert(rcbuf->ref > 0);
90 if (--rcbuf->ref == 0) {
91 nghttp2_rcbuf_del(rcbuf);
95 nghttp2_vec nghttp2_rcbuf_get_buf(nghttp2_rcbuf *rcbuf) {
96 nghttp2_vec res = {rcbuf->base, rcbuf->len};
100 int nghttp2_rcbuf_is_static(const nghttp2_rcbuf *rcbuf) {
101 return rcbuf->ref == -1;