BloombergLP::bdlsb::FixedMemInStreamBuf::setbuf

Reinitialize this stream buffer to use the specified character buffer.

Synopsis

Declared in <bdlsb_fixedmeminstreambuf.h>

virtual
FixedMemInStreamBuf*
setbuf(
    char* buffer,
    std::streamsize length) override;

Description

Reinitialize this stream buffer to use the specified character buffer having the specified length. Return the pointer providing modifiable access to this stream buffer.

Return Value

pointer providing modifiable access to this stream buffer

Parameters

NameDescription
buffercharacter buffer to use
lengthlength of buffer