reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::CountBuffer Class Reference

Implementation of std::streambuf used to back CountStream. More...

#include <CountStream.hxx>

Inheritance diagram for resip::CountBuffer:
[legend]

Public Member Functions

 CountBuffer (size_t &count)
 Constructs a CountBuffer with the reference to the size_t where the count should be written after flush is called on the stream.
 
virtual ~CountBuffer ()
 
- Public Member Functions inherited from resip::ResipStreamBuf
 ResipStreamBuf (void)
 
virtual ~ResipStreamBuf (void)
 

Protected Member Functions

virtual size_t writebuf (const char *s, size_t count)
 
virtual size_t putbuf (char ch)
 
virtual void flushbuf (void)
 
virtual size_t readbuf (char *buf, size_t count)
 
virtual uint64_t tellpbuf (void)
 

Detailed Description

Implementation of std::streambuf used to back CountStream.

See also
CountStream

Definition at line 18 of file CountStream.hxx.

Constructor & Destructor Documentation

◆ CountBuffer()

CountBuffer::CountBuffer ( size_t &  count)

Constructs a CountBuffer with the reference to the size_t where the count should be written after flush is called on the stream.

Definition at line 20 of file CountStream.cxx.

◆ ~CountBuffer()

CountBuffer::~CountBuffer ( )
virtual

Definition at line 29 of file CountStream.cxx.

Member Function Documentation

◆ flushbuf()

virtual void resip::CountBuffer::flushbuf ( void  )
inlineprotectedvirtual

Implements resip::ResipStreamBuf.

Definition at line 39 of file CountStream.hxx.

◆ putbuf()

size_t CountBuffer::putbuf ( char  ch)
protectedvirtual

Implements resip::ResipStreamBuf.

Definition at line 69 of file CountStream.cxx.

◆ readbuf()

virtual size_t resip::CountBuffer::readbuf ( char *  buf,
size_t  count 
)
inlineprotectedvirtual

Implements resip::ResipStreamBuf.

Definition at line 40 of file CountStream.hxx.

◆ tellpbuf()

uint64_t CountBuffer::tellpbuf ( void  )
protectedvirtual

Implements resip::ResipStreamBuf.

Definition at line 58 of file CountStream.cxx.

◆ writebuf()

size_t CountBuffer::writebuf ( const char *  s,
size_t  count 
)
protectedvirtual

Implements resip::ResipStreamBuf.

Definition at line 64 of file CountStream.cxx.


The documentation for this class was generated from the following files: