[#BloombergLP-bslx-GenericInStream-getArrayInt8-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/GenericInStream.adoc[GenericInStream]::getArrayInt8
:relfileprefix: ../../../
:mrdocs:

Extract the next array of one&hyphen;byte signed integers into the specified `variables`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslx/GenericInStream.adoc[GenericInStream&lt;STREAMBUF&gt;]&
getArrayInt8(
    char* variables,
    int numVariables);
----

== Description

Assign to the specified `variables` the consecutive one&hyphen;byte, two&apos;s complement integers comprised of each of the specified `numVariables` one&hyphen;byte sequences of this stream at the current cursor location, update the cursor location, and return a reference to this stream&period; If this stream is initially invalid, this operation has no effect&period; If this function otherwise fails to extract a valid value, this stream is marked invalid and the value of `variables` is undefined&period; The behavior is undefined unless `0 &lt;&equals; numVariables` and `variables` has sufficient capacity, or &grave;0 &equals;&equals; numVariables &amp;&amp; nullptr &equals;&equals; variables&grave;&period; Note that each of the values will be sign&hyphen;extended&period;

== Return Value

a reference to this stream

== Parameters

[cols="1,4"]
|===
| Name| Description
| *variables*
| destination array for the extracted values
| *numVariables*
| number of one&hyphen;byte integers to extract
|===


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