[#BloombergLP-bslx-ByteInStream-reset-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/ByteInStream.adoc[ByteInStream]::reset
:relfileprefix: ../../../
:mrdocs:

`reset` overloads

== Synopses

Declared in `&lt;bslx&lowbar;byteinstream&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/ByteInStream/reset-09.adoc[reset]();
----

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

Reset this stream to extract from the specified `srcData`&period;


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

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

Reset this stream to extract from the specified `buffer`&period;


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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *srcData*
| string reference providing the new stream contents
| *buffer*
| memory buffer providing the new stream contents
| *numBytes*
| number of bytes from `buffer` to use
|===


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