#include <OutStreams.h>
Inheritance diagram for OutSize:
Public Member Functions | |
void | reset () |
The function resets the counter to zero. | |
OutSize () | |
Constructor. | |
unsigned | getSize () const |
The function returns the number of bytes required to store the data written so far. | |
Protected Member Functions | |
virtual void | writeToStream (const void *p, int s) |
The function counts the number of bytes that should be written. | |
Private Attributes | |
unsigned | size |
Accumulator of the required number of bytes. |
Instead it works as a counter that determines how many bytes would be streamed into memory. It can be used to determine the size of the memory block that is required as the parameter for an instance of class OutMemoryStream.
Definition at line 688 of file OutStreams.h.
|
Constructor.
Definition at line 702 of file OutStreams.h. References reset(). |
Here is the call graph for this function:
|
The function resets the counter to zero.
Definition at line 697 of file OutStreams.h. Referenced by OutSize(). |
|
The function returns the number of bytes required to store the data written so far.
Definition at line 709 of file OutStreams.h. Referenced by NetDebugSender::send(), and NetSender< MessageQueue >::send(). |
|
The function counts the number of bytes that should be written.
Implements PhysicalOutStream. Definition at line 717 of file OutStreams.h. |
|
Accumulator of the required number of bytes.
Definition at line 691 of file OutStreams.h. |