[#DataStream-2constructor-031]
= xref:DataStream.adoc[DataStream]::DataStream
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Construct an empty stream&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
xref:DataStream/2constructor-0a.adoc[DataStream]() = default;
----

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

Construct a stream initialized from a span of unsigned bytes&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:DataStream/2constructor-035.adoc[DataStream](std::span&lt;uint8&lowbar;t const&gt; sp);
----

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

Construct a stream initialized from a span of stored elements&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:DataStream/2constructor-0d.adoc[DataStream](std::span&lt;value&lowbar;type const&gt; sp);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sp*
| Bytes copied into the stream as its initial contents&period;
|===


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