[#BloombergLP-bslx-TestOutStream-putArrayInt16] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestOutStream.adoc[TestOutStream]::putArrayInt16 :relfileprefix: ../../../ :mrdocs: Write an array of two‐byte signed integers to this stream. == Synopsis Declared in `<bslx_testoutstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslx/TestOutStream.adoc[TestOutStream]& putArrayInt16( short const* values, int numValues); ---- == Description Write to this stream the one‐byte type indicator for a two‐byte integer, the four‐byte, two's complement integer (in network byte order) comprised of the least‐significant four bytes of the specified `numValues` (in host byte order), and the consecutive two‐byte, two's complement integers (in network byte order) comprised of the least‐significant two bytes of each of the `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. If the next output operation has been set to be marked invalid (see `makeNextInvalid`), reset this marking and emit the invalid indicator instead of the type indicator. The behavior is undefined unless `0 <= numValues` and `values` has sufficient contents. == Return Value a reference to this stream == Parameters [cols="1,4"] |=== | Name| Description | *values* | array of values to write | *numValues* | number of leading entries in `values` to write |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#