Parameterized input stream for unexternalizing fundamental types.
Synopsis
Declared in <bslx_genericinstream.h>
template<class STREAMBUF>
class GenericInStream;
Description
This class provides input methods to unexternalize values, and C‐style arrays of values, of the fundamental integral and floating‐point types, as well as bsl::string values, using a byte format documented in the bslx_byteoutstream component. In particular, each get method of this class is guaranteed to read stream data written by the corresponding put method of bslx::GenericOutStream. Note that attempting to read beyond the end of a stream will automatically invalidate the stream. See the bslx package‐level documentation for the definition of the BDEX InStream protocol.
Member Functions
Name |
Description |
|
Create an input byte stream that reads its input from the specified |
|
Destroy this object. |
Extract an array of four‐byte IEEE floats from this stream. |
|
Extract an array of eight‐byte IEEE doubles from this stream. |
|
Extract an array of two‐byte signed integers from this stream. |
|
Extract an array of three‐byte signed integers from this stream. |
|
Extract an array of four‐byte signed integers from this stream. |
|
Extract an array of five‐byte signed integers from this stream. |
|
Extract an array of six‐byte signed integers from this stream. |
|
Extract an array of seven‐byte signed integers from this stream. |
|
Extract an array of eight‐byte signed integers from this stream. |
|
|
|
Extract an array of two‐byte unsigned integers from this stream. |
|
Extract an array of three‐byte unsigned integers from this stream. |
|
Extract an array of four‐byte unsigned integers from this stream. |
|
Extract an array of five‐byte unsigned integers from this stream. |
|
Extract an array of six‐byte unsigned integers from this stream. |
|
Extract an array of seven‐byte unsigned integers from this stream. |
|
Extract an array of eight‐byte unsigned integers from this stream. |
|
|
|
Extract a four‐byte IEEE float into the specified |
|
Extract an eight‐byte IEEE double into the specified |
|
Extract a two‐byte signed integer into the specified |
|
Extract a three‐byte signed integer into the specified |
|
Extract a four‐byte signed integer into the specified |
|
Extract a five‐byte signed integer into the specified |
|
Extract a six‐byte signed integer into the specified |
|
Extract a seven‐byte signed integer into the specified |
|
Extract an eight‐byte signed integer into the specified |
|
|
|
Extract a BDEX‐encoded length into the specified |
|
Extract a BDEX‐encoded string into the specified |
|
Read a 16‐bit unsigned integer into |
|
Extract a three‐byte unsigned integer into the specified |
|
Extract a four‐byte unsigned integer into the specified |
|
Extract a five‐byte unsigned integer into the specified |
|
Extract a six‐byte unsigned integer into the specified |
|
Extract a seven‐byte unsigned integer into the specified |
|
Extract an eight‐byte unsigned integer into the specified |
|
|
|
Extract a one‐byte version number into the specified |
|
Put this input stream in an invalid state. |
|
Return |
|
Return a non‐zero value if this stream is valid, and 0 otherwise. |
Non-Member Functions
Name |
Description |
Read the specified |
Created with MrDocs