Write the 5 octets that comprise the 40-bit, signed, 2's-complement, bit-endian representation of the specified integer value to the specified streamBuf.
Declared in <balber_berutil.h>
static
int
put40BitIntegerValue(
std::streambuf* streamBuf,
bsls::Types::Int64 value);
Return 0 if successful, and a non-zero value otherwise. The operation succeeds if all bytes corresponding to the representation of the value are written to the streamBuf without the write position becoming unavailable. The behavior is undefined unless the value is in the half-open interval [-549755813888, 549755813888)].
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| streamBuf | output stream buffer |
| value | value to encode |