Components in the bdlsb package provide streambuf utilities.

Types

Name

Description

FixedMemInStreamBuf

This class implements the input functionality of the basic_streambuf protocol, using client‐supplied char * memory.

FixedMemInput

This class, like bdlsb::FixedMemInStreamBuf, implements the input functionality of the basic_streambuf interface, using client‐supplied char * memory. It has an interface identical to bdlsb::FixedMemInStreamBuf but does not inherit from bsl::streambuf. This implementation is advantageous for performance reasons, as the overhead of the initialization and virtual function calls of a bsl::streambuf can be undesirable. It is especially designed for streaming a very small amount of information from a fixed‐length buffer using a bslx_genericinstream when the number of characters read from the input is guaranteed not to exceed the length of the buffer. Note that this class is not designed to be derived from.

FixedMemOutStreamBuf

This class implements the output functionality of the basic_streambuf protocol for client‐supplied memory.

FixedMemOutput

This class, like bdlsb::FixedMemOutStreamBuf, implements the output functionality of the basic_streambuf interface, using client‐supplied char * memory. It has an identical interface to bdlsb::FixedMemOutStreamBuf but does not inherit from bsl::streambuf. Thus, it is suitable for use as template parameter to bslx::GenericOutStream (but not to bslx::StreambufOutStream). Note that this class is not designed to be derived from.

MemOutStreamBuf

This class implements the output functionality of the basic_streambuf protocol, using a user‐supplied or default bslma allocator to supply memory.

MemOutStreamBuf_Util

Utility functions for MemOutStreamBuf buffer management.

OverflowMemOutStreamBuf

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.

OverflowMemOutput

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.

Created with MrDocs