This class provides a test input stream for BDEX unexternalization.
Synopsis
Declared in <bslx_testinstream.h>
class TestInStream;
Description
This class provides input methods to unexternalize values, and C‐style arrays of values, of fundamental types from their byte representations. Each input method also verifies the input value type. By default, if invalid data is detected, error messages are displayed on stdout; this error reporting may be disabled via the setQuiet method. 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 |
|
Constructors |
|
Destroy this test input stream. |
Return the index of the next byte to be extracted from this stream. |
|
Return the address of this stream's contiguous external memory buffer. |
|
Consume an array of single‐precision floats from this stream. |
|
Consume an array of double‐precision floats from this stream. |
|
Consume an array of two‐byte signed integers from this stream. |
|
Consume an array of three‐byte signed integers from this stream. |
|
Consume an array of four‐byte signed integers from this stream. |
|
Consume an array of five‐byte signed integers from this stream. |
|
Consume an array of six‐byte signed integers from this stream. |
|
Consume an array of seven‐byte signed integers from this stream. |
|
Consume an array of eight‐byte signed integers from this stream. |
|
Consume an array of one‐byte signed integers from this stream. |
|
Consume an array of two‐byte unsigned integers from this stream. |
|
Consume an array of three‐byte unsigned integers from this stream. |
|
Consume an array of four‐byte unsigned integers from this stream. |
|
Consume an array of five‐byte unsigned integers from this stream. |
|
Consume an array of six‐byte unsigned integers from this stream. |
|
Consume an array of seven‐byte unsigned integers from this stream. |
|
Consume an array of eight‐byte unsigned integers from this stream. |
|
Consume an array of one‐byte unsigned integers from this stream. |
|
Consume a single‐precision floating‐point value from this stream. |
|
Consume a double‐precision floating‐point value from this stream. |
|
Consume a two‐byte signed integer from this stream. |
|
Consume a three‐byte signed integer from this stream. |
|
Consume a four‐byte signed integer from this stream. |
|
Consume a five‐byte signed integer from this stream. |
|
Consume a six‐byte signed integer from this stream. |
|
Consume a seven‐byte signed integer from this stream. |
|
Consume an eight‐byte signed integer from this stream. |
|
Consume a one‐byte signed integer from this stream. |
|
Consume a BDEX length value from this stream. |
|
Consume a string value from this stream. |
|
Consume a two‐byte unsigned integer from this stream. |
|
Consume a three‐byte unsigned integer from this stream. |
|
Consume a four‐byte unsigned integer from this stream. |
|
Consume a five‐byte unsigned integer from this stream. |
|
Consume a six‐byte unsigned integer from this stream. |
|
Consume a seven‐byte unsigned integer from this stream. |
|
Consume an eight‐byte unsigned integer from this stream. |
|
Consume a one‐byte unsigned integer from this stream. |
|
Consume a BDEX version value from this stream. |
|
Return the current number of input requests left before an exception is thrown. A negative value indicates that no exception is scheduled. |
|
Put this input stream in an invalid state. |
|
Return |
|
Return |
|
Return |
|
Return the total number of bytes stored in the external memory buffer. |
|
|
|
Set the extraction cursor to the specified |
|
Set the number of remaining input operations before an exception. |
|
Set whether this stream suppresses error messages on standard output. |
|
Return a non‐zero value if this stream is valid, and 0 otherwise. An invalid stream is a stream for which an input operation was detected to have failed. |
Friends
Name |
Description |
Write the specified |
Non-Member Functions
Name |
Description |
Read a BDEX‐compliant |
Created with MrDocs