SpanWriter::SpanWriter

Constructors

Synopses

Declared in <streams.h>

Construct a writer over an existing span of bytes to fill.

explicit
SpanWriter(std::span<std::byte> dest);
» more...

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

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

Parameters

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