|
Libevent Code Doxygen document
|
#include <evbuffer-internal.h>

Public Attributes | |
| struct evbuffer_chain * | next |
| size_t | buffer_len |
| ev_misalign_t | misalign |
| size_t | off |
| unsigned | flags |
| int | refcnt |
| unsigned char * | buffer |
A single item in an evbuffer.
| unsigned char* evbuffer_chain::buffer |
Usually points to the read-write memory belonging to this buffer allocated as part of the evbuffer_chain allocation. For mmap, this can be a read-only buffer and EVBUFFER_IMMUTABLE will be set in flags. For sendfile, it may point to NULL.
| size_t evbuffer_chain::buffer_len |
total allocation available in the buffer field.
| unsigned evbuffer_chain::flags |
Set if special handling is required for this chain
| ev_misalign_t evbuffer_chain::misalign |
unused space at the beginning of buffer or an offset into a file for sendfile buffers.
| struct evbuffer_chain* evbuffer_chain::next |
points to next buffer in the chain
| size_t evbuffer_chain::off |
Offset into buffer + misalign at which to start writing. In other words, the total number of bytes actually stored in buffer.
| int evbuffer_chain::refcnt |
number of references to this chain