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