This class implements the output functionality of the basic_streambuf protocol, using a user‐supplied or default bslma allocator to supply memory.
Synopsis
Declared in <bdlsb_memoutstreambuf.h>
class MemOutStreamBuf
: public std::streambuf
Base Classes
Name |
Description |
|
Member Functions
Name |
Description |
|
Create an empty stream buffer. |
|
Create an empty stream buffer with the specified initial capacity. |
|
Destroy this stream buffer. |
Return the current capacity of the buffer managed by this stream buffer. |
|
Return the address of the non‐modifiable character buffer managed by this stream buffer. |
|
Return the number of valid characters in this stream buffer. |
|
Reserve capacity for at least the specified number of characters. |
|
Reset this stream buffer to its default‐constructed empty state. |
|
|
Declare |
Protected Member Functions
Name |
Description |
|
Append a character to this stream buffer, growing as needed. |
|
Set the put position relative to the specified base and return it. |
|
Set the put position to the specified absolute position and return it. |
|
Write characters from a buffer into this stream buffer. |
Created with MrDocs