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

Constructors

== Synopses

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

Create an empty test input stream&period; Note that the constructed object is useless until a buffer is set with the `reset` method&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslx/TestInStream/2constructor-07f.adoc[TestInStream]();
----

[.small]#xref:BloombergLP/bslx/TestInStream/2constructor-07f.adoc[_» more&period;&period;&period;_]#

Create a test input stream containing the specified `srcData`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslx/TestInStream/2constructor-0a.adoc[TestInStream](xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& srcData);
----

[.small]#xref:BloombergLP/bslx/TestInStream/2constructor-0a.adoc[_» more&period;&period;&period;_]#

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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslx/TestInStream/2constructor-04.adoc[TestInStream](
    char const* buffer,
    std::size&lowbar;t numBytes);
----

[.small]#xref:BloombergLP/bslx/TestInStream/2constructor-04.adoc[_» more&period;&period;&period;_]#


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