[#BloombergLP-bdlsb-MemOutStreamBuf-xsputn]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/MemOutStreamBuf.adoc[MemOutStreamBuf]::xsputn
:relfileprefix: ../../../
:mrdocs:

Write the specified `numChars` characters from the specified `source` to the stream buffer&period; Return the number of characters successfully written&period; The behavior is undefined unless &apos;(source &amp;&amp; 0 &lt; numChars) &verbar;&verbar; 0 &equals;&equals; numChars&apos;&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::streamsize
xsputn(
    char&lowbar;type const* source,
    std::streamsize numChars) override;
----


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