SpanWriter::SpanWriter

Construct a writer and immediately serialize the given items into the span.

Synopsis

Declared in <streams.h>

template<typename... Args>
SpanWriter(
    std::span<std::byte> dest,
    Args&&... args);

Parameters

NameDescription
destSpan of bytes the writer will fill.
argsItems to serialize into the span on construction.