Output streambuf using a client buffer and an overflow allocator.
Synopsis
Declared in <bdlsb_overflowmemoutstreambuf.h>
class OverflowMemOutStreamBuf
: public std::streambuf
Description
This class implements the output functionality of the bsl::basic_streambuf protocol, using client‐supplied memory and client‐supplied allocator if additional memory is needed.
Base Classes
Name |
Description |
|
Member Functions
Name |
Description |
|
Create an empty stream buffer with the specified initial output buffer. |
|
Destroy this stream buffer. |
Return the number of bytes written to this stream. |
|
Return the length of data in the initial buffer, i.e., |
|
Return the length of the data in the overflow buffer, i.e., 0 if there is no overflow buffer, or |
|
Return a pointer to the non‐modifiable buffer supplied at construction. |
|
Return the size of the buffer supplied at construction. |
|
Return a pointer to the non‐modifiable overflow buffer if there is one, or 0 otherwise. |
|
Return the size of the overflow buffer, or 0 if there is no overflow buffer. |
|
|
Declare that this type uses a |
Protected Member Functions
Name |
Description |
|
Put |
|
Set the put position relative to the specified base and return it. |
|
Set the put position to the specified absolute position and return it. |
|
Update the cached data length from the current put position. |
|
Write characters from a buffer into this stream buffer. |
Created with MrDocs