:orphan: .. index:: pair: struct; refcnt_buffer .. _doxid-structrefcnt__buffer: struct refcnt_buffer ==================== .. toctree:: :hidden: Overview ~~~~~~~~ A memory buffer that keeps track of references to its contents :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct refcnt_buffer { // fields void* :ref:`buf`; size_t :ref:`len`; int* :ref:`refcount`; // methods :ref:`TAILQ_ENTRY`(refcnt_buffer); }; .. _details-structrefcnt__buffer: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A memory buffer that keeps track of references to its contents Fields ------ .. index:: pair: variable; buf .. _doxid-structrefcnt__buffer_1a3670f518c9e9863f0fee609db64e3c5a: .. ref-code-block:: cpp :class: doxyrest-title-code-block void* buf Pointer to data .. index:: pair: variable; len .. _doxid-structrefcnt__buffer_1a076e0ed0e92c5ec7fbab50233a4e8d13: .. ref-code-block:: cpp :class: doxyrest-title-code-block size_t len Length of data .. index:: pair: variable; refcount .. _doxid-structrefcnt__buffer_1a967aa48526312699c90dabcbd2e9f1dd: .. ref-code-block:: cpp :class: doxyrest-title-code-block int* refcount Reference counter Methods ------- .. index:: pair: function; TAILQ_ENTRY .. _doxid-structrefcnt__buffer_1a7aa14ee535d363145dc434a9203ea301: .. ref-code-block:: cpp :class: doxyrest-title-code-block TAILQ_ENTRY(refcnt_buffer) Pointers to other buffers