[#SpanReader-2constructor-04]
= xref:SpanReader.adoc[SpanReader]::SpanReader
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;streams&period;h&gt;`

Construct a reader over an existing span of bytes&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:SpanReader/2constructor-02.adoc[SpanReader](std::span&lt;std::byte const&gt; data);
----

[.small]#xref:SpanReader/2constructor-02.adoc[_» more&period;&period;&period;_]#

Construct a reader over an existing array of unsigned char bytes&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:SpanReader/2constructor-0d.adoc[SpanReader](std::span&lt;unsigned char const&gt; data);
----

[.small]#xref:SpanReader/2constructor-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| Bytes the reader will consume&period;
|===


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