8#if defined(WIN32) && !defined(__GNUC__)
9#pragma warning( disable : 4355 )
14#ifdef RESIP_USE_STL_STREAMS
15static const int BuffSize(2048);
17static char Buffer[BuffSize];
24#ifdef RESIP_USE_STL_STREAMS
25 setp(Buffer, Buffer+BuffSize);
32#ifdef RESIP_USE_STL_STREAMS
36 size_t len = pptr() - pbase();
41 setp(Buffer, Buffer + BuffSize);
47CountBuffer::overflow(
int c)
84#ifdef RESIP_USE_STL_STREAMS
Implementation of std::streambuf used to back CountStream.
virtual size_t putbuf(char ch)
virtual uint64_t tellpbuf(void)
virtual size_t writebuf(const char *s, size_t count)
CountBuffer(size_t &count)
Constructs a CountBuffer with the reference to the size_t where the count should be written after flu...
~CountStream()
Calls flush on itself to force the update to the count reference passed into the constructor.
CountStream(size_t &count)
Constructs a CountStream with a reference to where the count of bytes written to the stream should be...
dcm! – add UnusedChecking(_enum) below;
unsigned long long uint64_t