dpkg 1.22.7-3-g89f48
|
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 command_in_path(), commandfd(), compress_filter(), conffderef(), cu_installnew(), decompress_filter(), describedepcon(), ensure_packagefiles_available(), f_dependency(), file_getcwd(), file_readlink(), log_message(), modstatdb_checkpoint(), parse_filehash(), parsedb_load(), pkg_format_show(), pkg_infodb_foreach(), pkg_infodb_get_file(), predeppackage(), read_info(), setupfnamevbs(), statusfd_send(), tar_deferred_extract(), tarobject(), trigdef_process_done(), trigdef_update_start(), varbuf_add_buf(), varbuf_add_char(), varbuf_add_dir(), varbuf_add_varbuf(), varbuf_destroy(), varbuf_detach(), varbuf_dup_char(), varbuf_free(), varbuf_grow(), varbuf_has_prefix(), varbuf_has_suffix(), varbuf_init(), varbuf_map_char(), varbuf_reset(), varbuf_rollback_start(), varbuf_set_buf(), varbuf_set_varbuf(), varbuf_str(), varbuf_trim_char_prefix(), varbuf_trim_varbuf_prefix(), varbuf_trunc(), varbuf_vprintf(), and versiondescribe().
size_t varbuf::size |
Referenced by file_getcwd(), file_readlink(), varbuf_add_buf(), varbuf_destroy(), varbuf_detach(), varbuf_grow(), varbuf_init(), varbuf_new(), varbuf_set_buf(), and varbuf_trunc().
size_t varbuf::used |
Referenced by commandfd(), conffderef(), deferred_configure(), ensure_packagefiles_available(), get_force_string(), log_message(), parse_filehash(), pkg_format_print(), statusfd_send(), trigproc(), varbuf_add_buf(), varbuf_add_char(), varbuf_add_dir(), varbuf_add_varbuf(), varbuf_destroy(), varbuf_detach(), varbuf_dup_char(), varbuf_grow(), varbuf_has_prefix(), varbuf_has_suffix(), varbuf_init(), varbuf_map_char(), varbuf_reset(), varbuf_rollback_len(), varbuf_set_varbuf(), varbuf_snapshot(), varbuf_trim_char_prefix(), varbuf_trim_varbuf_prefix(), varbuf_trunc(), and varbuf_vprintf().