Provide a BDEX input stream that unexternalizes values from a byte buffer.
Synopsis
Declared in <bslx_byteinstream.h>
class ByteInStream;
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::ByteOutStream. 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 object. |
Return the index of the next byte to be extracted from this stream. |
|
Return the address of this stream's external memory buffer. |
|
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. |
|
|
|
Assign the next four‐byte IEEE float to |
|
Assign the next eight‐byte IEEE double to |
|
Assign the next two‐byte signed integer to |
|
Assign the next three‐byte signed integer to |
|
Assign the next four‐byte signed integer to |
|
Assign the next five‐byte signed integer to |
|
Assign the next six‐byte signed integer to |
|
Assign the next seven‐byte signed integer to |
|
Assign the next eight‐byte signed integer to |
|
|
|
Extract a compact length value into the specified |
|
Extract a length‐prefixed string into the specified |
|
Assign the next two‐byte unsigned integer to |
|
Assign the next three‐byte unsigned integer to |
|
Assign the next four‐byte unsigned integer to |
|
Assign the next five‐byte unsigned integer to |
|
Assign the next six‐byte unsigned integer to |
|
Assign the next seven‐byte unsigned integer to |
|
Assign the next eight‐byte unsigned integer to |
|
|
|
Extract a one‐byte version into the specified |
|
Put this input stream in an invalid state. |
|
Return |
|
Return |
|
Return the total number of bytes stored in the external memory buffer. |
|
|
|
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