[#BloombergLP-bslx-TestInStream-2constructor-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestInStream.adoc[TestInStream]::TestInStream
:relfileprefix: ../../../
:mrdocs:

Create a test input stream containing the specified initial `numBytes` from the specified `buffer`&period; The behavior is undefined unless `0 &equals;&equals; numBytes` if `0 &equals;&equals; buffer`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
TestInStream(
    char const* buffer,
    std::size&lowbar;t numBytes);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| contiguous bytes to extract from
| *numBytes*
| number of bytes in `buffer`
|===


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