Read 5 bytes from the input sequence of the specified streamBuf and load to the specified value the interpretation of those bytes as a 40‐bit, signed.
Synopsis
Declared in <balber_berutil.h>
static
int
get40BitIntegerValue(
bsls::Types::Int64* value,
std::streambuf* streamBuf);
Description
2's‐complement, big‐endian integer. Return 0 if successful, and a non‐zero value otherwise. The operation succeeds if all 5 bytes are successfully read from the input sequence of the streamBuf without the read position becoming unavailable, and the bytes read contain a valid representation of a 40‐bit, signed, 2's‐complement, big‐endian integer.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
value |
destination for the decoded value |
streamBuf |
input stream buffer |
Created with MrDocs