This class, like bdlsb::OverflowMemOutStreamBuf, implements the output functionality of the bsl::basic_streambuf interface, using a client‐supplied buffer and allocator‐supplied overflow buffer if additional memory is needed. It has an interface similar to bdlsb::OverflowMemOutStreamBuf but does not inherit from bsl::streambuf. Thus, it is suitable for use as template parameter to bslx::GenericByteOutStream (but not to bslx::ByteOutStream or bslx::ByteOutStreamFormatter). Note that this class is not designed to be derived from.
Synopsis
Declared in <bdlsb_overflowmemoutput.h>
class OverflowMemOutput;
Type Aliases
Member Functions
Name |
Description |
|
Create an |
|
Destroy this stream buffer. |
Return the number of bytes that have been written to this object. |
|
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 providing non‐modifiable access to the character buffer held by this stream buffer (specified at construction). |
|
Return the size of the initial buffer held by this stream buffer. |
|
Return a pointer providing non‐modifiable access to the overflow buffer if there is one, or 0 otherwise. |
|
Return the size of the overflow buffer, or 0 if there is no overflow buffer. |
|
Set the position indicator to the relative specified |
|
Set the position indicator to the specified |
|
Reinitialize this stream buffer to use the specified character |
|
Synchronize this stream buffer with associated character sequence. Operation has no effect. Return |
|
Write the specified character |
|
Write the specified |
|
|
Created with MrDocs