[#BloombergLP-bdlsb-OverflowMemOutStreamBuf-sync]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/OverflowMemOutStreamBuf.adoc[OverflowMemOutStreamBuf]::sync
:relfileprefix: ../../../
:mrdocs:

Set `d&lowbar;dataLength` to the amount of data that has been written to this stream buffer, from the beginning of the stream to the current `pptr()` position and return 0&period; Note that if `pptr()` points into the overflow buffer, this size the initial buffer, plus the portion of the overflow buffer that has been written to&period;

== Synopsis

Declared in `&lt;bdlsb&lowbar;overflowmemoutstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
int
sync() override;
----


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