[#absl-CopyCordToSpan]
= xref:absl.adoc[absl]::CopyCordToSpan
:relfileprefix: ../
:mrdocs:

Copies up to `dst&period;size()` bytes starting from the beginning of `src` to `dst`&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;cord&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
size&lowbar;t
CopyCordToSpan(
    xref:absl/Cord.adoc[Cord] const& src,
    xref:absl/Span.adoc[absl::Span&lt;char&gt;] dst);
----

== Return Value

The number of bytes copied&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *src*
| The Cord to copy from&period;
| *dst*
| The span that receives the copied bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
