[#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 `<bslx_testinstream.h>` Set the index of the next byte to be extracted from this stream to 0 (i.e., the beginning of the stream) and validate this stream if it is currently invalid. [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..._]# Reset this stream to extract from the specified `srcData`, set the index of the next byte to be extracted to 0 (i.e., the beginning of the stream), and validate this stream if it is currently invalid. [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..._]# 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.e., the beginning of the stream), and validate this stream if it is currently invalid. The behavior is undefined unless `0 == numBytes` if `0 == buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bslx/TestInStream/reset-00.adoc[reset]( char const* buffer, std::size_t numBytes); ---- [.small]#xref:BloombergLP/bslx/TestInStream/reset-00.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#