78_At_(*buf, _Pre_maybenull_ _Post_notnull_)
void bufResize(_Inout_
Buffer* buf,
size_t newsize);
99 return buf ? buf->len : 0;
133_At_(*buf, _Pre_maybenull_ _Post_notnull_) _Ret_notnull_ uint8*
bufReserve(_Inout_
Buffer* buf,
152 _In_reads_bytes_opt_(len)
187_At_(*buf, _Pre_maybenull_) _At_(*src, _Pre_maybenull_ _Post_null_)
void
void bufAppendC(Buffer *buf, Buffer *src)
void bufAppendBytes(Buffer *buf, _In_reads_bytes_opt_(len) const void *data, size_t len)
void bufClear(Buffer buf)
bool bufTryResize(Buffer *buf, size_t newsize)
Buffer bufTryCreate(size_t size)
void bufDestroy(Buffer *buf)
size_t bufLen(Buffer buf)
uint8 * bufReserve(Buffer *buf, size_t len)
void bufAppend(Buffer *buf, Buffer src)
Buffer bufCreate(size_t size)
void bufResize(Buffer *buf, size_t newsize)
size_t len
Number of valid bytes in this region.
void * data
Pointer to the start of this region.