Provide a BDEX output stream that externalizes values to a stream buffer.
Synopsis
Declared in <bslx_genericoutstream.h>
template<class STREAMBUF>
class GenericOutStream;
Description
This class provides output methods to externalize values, and C‐style arrays of values, of the fundamental integral and floating‐point types, as well as bsl::string values. In particular, each put method of this class is guaranteed to write stream data that can be read by the corresponding get method of bslx::GenericInStream. See the bslx package‐level documentation for the definition of the BDEX OutStream protocol.
Member Functions
Name |
Description |
|
Create an output byte stream that writes to the specified |
|
Destroy this object. |
Return the |
|
If this stream is valid, invoke the |
|
Put this output stream in an invalid state. This function has no effect if this stream is already invalid. |
|
Return |
|
Write an array of four‐byte IEEE single‐precision values to this stream. |
|
Write an array of eight‐byte IEEE double‐precision values to this stream. |
|
Write an array of two‐byte signed integers to this stream. |
|
Write an array of three‐byte signed integers to this stream. |
|
Write an array of four‐byte signed integers to this stream. |
|
Write an array of five‐byte signed integers to this stream. |
|
Write an array of six‐byte signed integers to this stream. |
|
Write an array of seven‐byte signed integers to this stream. |
|
Write an array of eight‐byte signed integers to this stream. |
|
|
|
Write an array of two‐byte unsigned integers to this stream. |
|
Write an array of three‐byte unsigned integers to this stream. |
|
Write an array of four‐byte unsigned integers to this stream. |
|
Write an array of five‐byte unsigned integers to this stream. |
|
Write an array of six‐byte unsigned integers to this stream. |
|
Write an array of seven‐byte unsigned integers to this stream. |
|
Write an array of eight‐byte unsigned integers to this stream. |
|
|
|
Write a four‐byte IEEE single‐precision value to this stream. |
|
Write an eight‐byte IEEE double‐precision value to this stream. |
|
Write a two‐byte signed integer to this stream. |
|
Write a three‐byte signed integer to this stream. |
|
Write a four‐byte signed integer to this stream. |
|
Write a five‐byte signed integer to this stream. |
|
Write a six‐byte signed integer to this stream. |
|
Write a seven‐byte signed integer to this stream. |
|
Write an eight‐byte signed integer to this stream. |
|
Write a one‐byte signed integer to this stream. |
|
Write the specified |
|
Write the length and characters of the specified |
|
Write a two‐byte unsigned integer to this stream. |
|
Write a three‐byte unsigned integer to this stream. |
|
Write the 32‐bit unsigned |
|
Write a five‐byte unsigned integer to this stream. |
|
Write a six‐byte unsigned integer to this stream. |
|
Write a seven‐byte unsigned integer to this stream. |
|
Write an eight‐byte unsigned integer to this stream. |
|
Write a one‐byte unsigned integer to this stream. |
|
Write the specified one‐byte |
|
Return a non‐null pointer if this stream is valid, and null otherwise. |
Non-Member Functions
Name |
Description |
Write the BDEX‐compliant |
Created with MrDocs