absl::CopyCordToSpan

Copies up to dst.size() bytes starting from the beginning of src to dst.

Synopsis

Declared in <absl/strings/cord.h>

[[nodiscard]]
size_t
CopyCordToSpan(
    Cord const& src,
    absl::Span<char> dst);

Return Value

The number of bytes copied.

NOTE

The return value should not be discarded.

Parameters

NameDescription
srcThe Cord to copy from.
dstThe span that receives the copied bytes.