[#absl-Cord-InlineRep-set_data-0a]
= xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::xref:absl/Cord.adoc[InlineRep]::set&lowbar;data
:relfileprefix: ../../../
:mrdocs:

`set&lowbar;data` overloads

== Synopses

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

Reserves inline storage for `n` bytes and returns a writable pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char*
xref:absl/Cord/InlineRep/set_data-09.adoc[set&lowbar;data](size&lowbar;t n);
----

[.small]#xref:absl/Cord/InlineRep/set_data-09.adoc[_» more&period;&period;&period;_]#

Sets the inline data, discarding any existing pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/Cord/InlineRep/set_data-04.adoc[set&lowbar;data](
    char const* data,
    size&lowbar;t n);
----

[.small]#xref:absl/Cord/InlineRep/set_data-04.adoc[_» more&period;&period;&period;_]#

== Return Value

A pointer to the writable inline storage&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *n*
| The number of bytes to reserve&period;
| *data*
| The character data to store inline&period;
|===


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