Load a five-byte two's complement integer from buffer.
Declared in <bslx_marshallingutil.h>
static
void
getInt40(
bsls::Types::Int64* variable,
char const* buffer);
Load into the specified variable the five-byte, two's complement integer (in host byte order) comprised of the initial five bytes of the specified buffer (in network byte order). The behavior is undefined unless buffer has sufficient contents. Note that the value will be sign-extended.
| Name | Description |
|---|---|
| variable | destination for the host-order five-byte integer |
| buffer | source buffer in network byte order |