[#BloombergLP-bdlsb-FixedMemOutStreamBuf-setbuf] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/FixedMemOutStreamBuf.adoc[FixedMemOutStreamBuf]::setbuf :relfileprefix: ../../../ :mrdocs: Reinitialize this stream buffer with a new character buffer. == Synopsis Declared in `<bdlsb_fixedmemoutstreambuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual xref:BloombergLP/bdlsb/FixedMemOutStreamBuf.adoc[FixedMemOutStreamBuf]* setbuf( char_type* buffer, std::streamsize length) override; ---- == Description Reinitialize this stream buffer to use the specified character `buffer` having the specified `length`. Return the address of this modifiable stream buffer. The behavior is undefined unless `length == 0` or `length > 0 && buffer != 0`. Upon re‐initialization for use of the new buffer, the length and next output location are reset to zero. Note that `buffer` is held but not owned. == Return Value address of this modifiable stream buffer == Parameters [cols="1,4"] |=== | Name| Description | *buffer* | character buffer to use for output; held but not owned | *length* | size of `buffer` in characters |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#