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

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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
reset(
    char const* buffer,
    std::size&lowbar;t numBytes);
----


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