dpkg 1.21.11
|
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 |
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.
char* varbuf::buf |
Referenced by conffderef(), cu_installnew(), deferred_configure(), describedepcon(), find_command(), log_message(), parse_filehash(), parsedb_load(), pkg_format_show(), pkg_infodb_get_file(), predeppackage(), setupfnamevbs(), tarobject(), varbuf_add_buf(), varbuf_add_char(), varbuf_add_dir(), varbuf_destroy(), varbuf_detach(), varbuf_dup_char(), varbuf_end_str(), varbuf_free(), varbuf_get_str(), varbuf_grow(), varbuf_init(), varbuf_map_char(), varbuf_rollback_start(), varbuf_vprintf(), writedb_records(), and writerecord().
size_t varbuf::size |
Referenced by conffderef(), varbuf_destroy(), varbuf_detach(), varbuf_grow(), varbuf_init(), varbuf_new(), and varbuf_trunc().
size_t varbuf::used |
Referenced by conffderef(), deferred_configure(), log_message(), parse_filehash(), varbuf_add_buf(), varbuf_add_char(), varbuf_add_dir(), varbuf_destroy(), varbuf_detach(), varbuf_dup_char(), varbuf_end_str(), varbuf_grow(), varbuf_init(), varbuf_map_char(), varbuf_reset(), varbuf_rollback_len(), varbuf_snapshot(), varbuf_trunc(), and varbuf_vprintf().