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

Name

Description

src

The Cord to copy from.

dst

The span that receives the copied bytes.

Created with MrDocs