BloombergLP::bslx::ByteOutStream::putArrayInt16

Write to this stream 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), and return a reference to this stream. If this stream is initially invalid, this operation has no effect. The behavior is undefined unless 0 <= numValues and values has sufficient contents.

Synopsis

Declared in <bslx_byteoutstream.h>

ByteOutStream&
putArrayInt16(
    short const* values,
    int numValues);