[#SpanWriter-2constructor-0e] = xref:SpanWriter.adoc[SpanWriter]::SpanWriter :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<streams.h>` Construct a writer over an existing span of bytes to fill. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:SpanWriter/2constructor-04.adoc[SpanWriter](std::span<std::byte> dest); ---- [.small]#xref:SpanWriter/2constructor-04.adoc[_» more..._]# Construct a writer and immediately serialize the given items into the span. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename... Args> xref:SpanWriter/2constructor-09.adoc[SpanWriter]( std::span<std::byte> dest, Args&&... args); ---- [.small]#xref:SpanWriter/2constructor-09.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *dest* | Span of bytes the writer will fill. | *args* | Items to serialize into the span on construction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#