[#BloombergLP-bslx-TestInStream-getArrayInt16] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestInStream.adoc[TestInStream]::getArrayInt16 :relfileprefix: ../../../ :mrdocs: If required, throw a `TestInStreamException` (see `throwExceptionIfInputLimitExhausted`); otherwise, consume the 8‐bit unsigned integer type code, verify the type of the next value in this stream, consume that 16‐bit signed integer array value into the specified `variables` of the specified `numVariables` if its type and length are appropriate, update the cursor location, and return a reference to this stream. If the type is incorrect, then this stream is marked invalid and the value of `variables` is unchanged. If this stream is initially invalid, this operation has no effect. If this function otherwise fails to extract a valid value, this stream is marked invalid and the value of `variables` is undefined. The behavior is undefined unless `0 <= numVariables` and `variables` has sufficient capacity. == Synopsis Declared in `<bslx_testinstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslx/TestInStream.adoc[TestInStream]& getArrayInt16( short* variables, int numVariables); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#