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

Advances the `Cord&colon;&colon;CharIterator` by `n&lowbar;bytes` and returns the bytes advanced as a separate `Cord`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:absl/Cord.adoc[Cord]
AdvanceAndRead(
    xref:absl/Cord/CharIterator.adoc[CharIterator]* it,
    size&lowbar;t n&lowbar;bytes);
----

== Description

`n&lowbar;bytes` must be less than or equal to the number of bytes within the Cord&semi; otherwise, behavior is undefined&period; It is valid to pass `char&lowbar;end()` and `0`&period;

== Return Value

A Cord holding the bytes advanced over&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *it*
| The iterator to advance&period;
| *n&lowbar;bytes*
| The number of bytes to advance and read&period;
|===


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