[#SpanWriter-2constructor-0e]
= xref:SpanWriter.adoc[SpanWriter]::SpanWriter
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Construct a writer over an existing span of bytes to fill&period;


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

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

Construct a writer and immediately serialize the given items into the span&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename&period;&period;&period; Args&gt;
xref:SpanWriter/2constructor-09.adoc[SpanWriter](
    std::span&lt;std::byte&gt; dest,
    Args&&&period;&period;&period; args);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dest*
| Span of bytes the writer will fill&period;
| *args*
| Items to serialize into the span on construction&period;
|===


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