#include <WriteBuffer.hpp>
Public Methods | |
| WriteBuffer (File &file, int bufferSize) | |
| ~WriteBuffer () | |
| void | write (const char *data, int length) |
| void | flush () |
| File::offset_type | tellp () const |
Private Attributes | |
| char * | _buffer |
| int | _bufferSize |
| File & | _file |
| int | _position |
| File::offset_type | _filePos |
|
||||||||||||
|
|
|
|
|
|
|
flushes the internal buffer out to the ofstream. does not explicitly flush the ofstream. |
|
|
returns the current write pointer position |
|
||||||||||||
|
standard write semantics; will perform an unbuffered write if <length> is long enough to warrant it |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.16