[#BloombergLP-bslx-TestOutStream-putArrayInt16]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestOutStream.adoc[TestOutStream]::putArrayInt16
:relfileprefix: ../../../
:mrdocs:

Write to this stream the one&hyphen;byte type indicator for a two&hyphen;byte integer, the four&hyphen;byte, two&apos;s complement integer (in network byte order) comprised of the least&hyphen;significant four bytes of the specified `numValues` (in host byte order), and the consecutive two&hyphen;byte, two&apos;s complement integers (in network byte order) comprised of the least&hyphen;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&period; If this stream is initially invalid, this operation has no effect&period; 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&period; The behavior is undefined unless `0 &lt;&equals; numValues` and `values` has sufficient contents&period;

== Synopsis

Declared in `&lt;bslx&lowbar;testoutstream&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslx/TestOutStream.adoc[TestOutStream]&
putArrayInt16(
    short const* values,
    int numValues);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
