Serialize

Serialize a string view as a CompactSize length followed by its bytes.

Synopsis

Declared in <serialize.h>

template<
    typename Stream,
    typename C>
void
Serialize(
    Stream& os,
    std::basic_string_view<C> const& str);

Parameters

NameDescription
osThe output stream.
strThe string view to serialize.