[#BloombergLP-bslx-TestOutStream-data]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestOutStream.adoc[TestOutStream]::data
:relfileprefix: ../../../
:mrdocs:

Return the address of the contiguous, non&hyphen;modifiable internal memory buffer of this stream&period; The address will remain valid as long as this array is not destroyed or modified (i&period;e&period;, the current capacity is not exceeded)&period; The behavior of accessing elements outside the range `&lsqb; data() &period;&period; data() &plus; (length() &hyphen; 1) &rsqb;` is undefined&period;

== Synopsis

Declared in `&lt;bslx&lowbar;testoutstream&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char const*
data() const;
----


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