[#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 `<bslx_testinstream.h>` Create an empty test input stream. Note that the constructed object is useless until a buffer is set with the `reset` method. [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..._]# Create a test input stream containing the specified `srcData`. [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..._]# Create a test input stream containing the specified initial `numBytes` from the specified `buffer`. The behavior is undefined unless `0 == numBytes` if `0 == buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslx/TestInStream/2constructor-04.adoc[TestInStream]( char const* buffer, std::size_t numBytes); ---- [.small]#xref:BloombergLP/bslx/TestInStream/2constructor-04.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#