1#if !defined(RESIP_COUNTSTREAM_HXX)
2#define RESIP_COUNTSTREAM_HXX
19#ifdef RESIP_USE_STL_STREAMS
33#ifdef RESIP_USE_STL_STREAMS
35 virtual int overflow(
int c = -1);
37 virtual size_t writebuf(
const char *s,
size_t count);
38 virtual size_t putbuf(
char ch);
40 virtual size_t readbuf(
char *buf,
size_t count)
#define resip_assert(x)
This file needs to work for both C and C++ code.
Implementation of std::streambuf used to back CountStream.
virtual size_t putbuf(char ch)
virtual uint64_t tellpbuf(void)
virtual void flushbuf(void)
virtual size_t writebuf(const char *s, size_t count)
virtual size_t readbuf(char *buf, size_t count)
Used to count the amount of data written to a stream.
~CountStream()
Calls flush on itself to force the update to the count reference passed into the constructor.
dcm! – add UnusedChecking(_enum) below;
unsigned long long uint64_t