[#BloombergLP-bdlsb-FixedMemInStreamBuf-pubsetbuf-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/FixedMemInStreamBuf.adoc[FixedMemInStreamBuf]::pubsetbuf
:relfileprefix: ../../../
:mrdocs:

Reinitialize this stream buffer to use the specified character buffer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlsb/FixedMemInStreamBuf.adoc[FixedMemInStreamBuf]*
pubsetbuf(
    char* buffer,
    std::streamsize length);
----

== Description

Reinitialize this stream buffer to use the specified character `buffer` having the specified `length`&period; Return the address of this modifiable stream buffer&period; The behavior is undefined unless `buffer !&equals; 0 &amp;&amp; length &gt; 0` or `length &equals;&equals; 0`&period; Upon reinitialization for use of the new buffer, neither the content nor the next input position indicator is preserved&period; Note that `buffer` is held but not owned&period;

== Return Value

address of this modifiable stream buffer

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| character buffer to use
| *length*
| length of `buffer`
|===


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