An output stream buffer.
More...
#include <sos/fdstream.h>
|
int | flushBuffer () |
| Flush the characters in the buffer.
|
|
virtual int | overflow (int c) |
| Write the indicated character and all previous characters. More...
|
|
virtual int | sync () |
| Flush the data in the buffer.
|
|
|
static const int | BUFFER_SIZE = 8192 |
| Output buffer size.
|
|
An output stream buffer.
An output stream buffer which writes to a file descriptor. This provides output buffering.
fdoutbuf::fdoutbuf |
( |
int |
fd, |
|
|
bool |
isCloseNeeded, |
|
|
fdostream & |
owner |
|
) |
| |
constructor
- Parameters
-
fd | the file descriptor to write to |
isCloseNeeded | a flag indicating whether the file descriptor is closed on destruction |
owner | our owning output stream |
Close the output file descriptor.
This will be done whether or not the close needed flag is set.
int fdoutbuf::overflow |
( |
int |
c | ) |
|
|
protectedvirtual |
Write the indicated character and all previous characters.
- Parameters
-
The documentation for this class was generated from the following files: