Libevent Code Doxygen document
Public Attributes | List of all members
evbuffer_chain Struct Reference

#include <evbuffer-internal.h>

Collaboration diagram for evbuffer_chain:
Collaboration graph
[legend]

Public Attributes

struct evbuffer_chainnext
 
size_t buffer_len
 
ev_misalign_t misalign
 
size_t off
 
unsigned flags
 
int refcnt
 
unsigned char * buffer
 

Detailed Description

A single item in an evbuffer.

Member Data Documentation

◆ buffer

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.

◆ buffer_len

size_t evbuffer_chain::buffer_len

total allocation available in the buffer field.

◆ flags

unsigned evbuffer_chain::flags

Set if special handling is required for this chain

◆ misalign

ev_misalign_t evbuffer_chain::misalign

unused space at the beginning of buffer or an offset into a file for sendfile buffers.

◆ next

struct evbuffer_chain* evbuffer_chain::next

points to next buffer in the chain

◆ off

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.

◆ refcnt

int evbuffer_chain::refcnt

number of references to this chain


The documentation for this struct was generated from the following file: