Store consecutive two-byte integers into the specified buffer.
Declared in <bslx_marshallingutil.h>
static
void
putArrayInt16(
char* buffer,
short const* values,
int numValues);
Load into the specified buffer the consecutive two-byte, two's complement integers (in network byte order) comprised of the least-significant two bytes of each of the specified numValues leading entries in the specified values (in host byte order). The behavior is undefined unless buffer has sufficient capacity, values has sufficient contents, and 0 <= numValues.
| Name | Description |
|---|---|
| buffer | destination buffer in network byte order |
| values | array of host-order two-byte integers to write |
| numValues | number of values to write |