[#BloombergLP-bdlsb-OverflowMemOutStreamBuf-sync] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/OverflowMemOutStreamBuf.adoc[OverflowMemOutStreamBuf]::sync :relfileprefix: ../../../ :mrdocs: Set `d_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. 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. == Synopsis Declared in `<bdlsb_overflowmemoutstreambuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int sync() override; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#