Go to the documentation of this file.
10 #define SQUID_MEMBUF_H
14 #include "mem/forward.h"
112 virtual void append(
const char *c,
int sz);
113 virtual void vappendf(
const char *fmt, va_list ap);
void consumeWhitespacePrefix()
removes all prefix whitespace, moving content left
bool hasPotentialSpace() const
#define CBDATA_CLASS(type)
virtual void append(const char *c, int sz)
mb_size_t contentSize() const
available data size
const char * content() const
start of the added data
char * space()
returns buffer after data; does not check space existence
virtual void vappendf(const char *fmt, va_list ap)
void appended(mb_size_t sz)
updates content size after external append
MemBuf & operator=(const MemBuf &)
mb_size_t potentialSpaceSize() const
void truncate(mb_size_t sz)
char * content()
start of the added data
void memBufReport(MemBuf *mb)
mb_size_t spaceSize() const
void consume(mb_size_t sz)
removes sz bytes and "packs" by moving content left
void grow(mb_size_t min_cap)
char * space(mb_size_t required)