dpkg 1.21.11
Data Fields

varbuf_init must be called exactly once before the use of each varbuf (including before any call to varbuf_destroy), or the variable must be initialized with VARBUF_INIT. More...

#include <varbuf.h>

Data Fields

size_t used
 
size_t size
 
char * buf
 

Detailed Description

varbuf_init must be called exactly once before the use of each varbuf (including before any call to varbuf_destroy), or the variable must be initialized with VARBUF_INIT.

However, varbufs allocated ‘static’ are properly initialized anyway and do not need varbuf_init; multiple consecutive calls to varbuf_init before any use are allowed.

varbuf_destroy must be called after a varbuf is finished with, if anything other than varbuf_init has been done. After this you are allowed but not required to call varbuf_init again if you want to start using the varbuf again.

Callers using C++ need not worry about any of this.

Field Documentation

◆ buf

char* varbuf::buf

◆ size

size_t varbuf::size

◆ used

size_t varbuf::used

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