Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ap_varbuf Struct Reference

#include <util_varbuf.h>

Data Fields

char * buf
 
apr_size_t avail
 
apr_size_t strlen
 
apr_pool_tpool
 
struct ap_varbuf_info * info
 

Detailed Description

A resizable buffer.

Field Documentation

apr_size_t ap_varbuf::avail

Allocated size of the buffer (minus one for the final \0); must only be changed using ap_varbuf_grow().

char* ap_varbuf::buf

The actual buffer; will point to a const '\0' if avail == 0 and to memory of the same lifetime as the pool otherwise.

struct ap_varbuf_info* ap_varbuf::info

Opaque info for memory allocation.

apr_pool_t* ap_varbuf::pool

The pool for memory allocations and for registering the cleanup; the buffer memory will be released when this pool is cleared.

apr_size_t ap_varbuf::strlen

Length of string in buffer, or AP_VARBUF_UNKNOWN. This determines how much memory is copied by ap_varbuf_grow() and where ap_varbuf_strmemcat() will append to the buffer.


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