[#BloombergLP-bslx-TestInStream-reset-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestInStream.adoc[TestInStream]::reset
:relfileprefix: ../../../
:mrdocs:

`reset` overloads

== Synopses

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

Set the index of the next byte to be extracted from this stream to 0 (i&period;e&period;, the beginning of the stream) and validate this stream if it is currently invalid&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bslx/TestInStream/reset-0c.adoc[reset]();
----

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

Reset this stream to extract from the specified `srcData`, set the index of the next byte to be extracted to 0 (i&period;e&period;, the beginning of the stream), and validate this stream if it is currently invalid&period;


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

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

Reset this stream to extract from the specified `buffer` containing the specified `numBytes`, set the index of the next byte to be extracted to 0 (i&period;e&period;, the beginning of the stream), and validate this stream if it is currently invalid&period; The behavior is undefined unless `0 &equals;&equals; numBytes` if `0 &equals;&equals; buffer`&period;


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

[.small]#xref:BloombergLP/bslx/TestInStream/reset-00.adoc[_» more&period;&period;&period;_]#


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