This class implements the output functionality of the basic_streambuf protocol for client‐supplied memory.

Synopsis

Declared in <bdlsb_fixedmemoutstreambuf.h>

class FixedMemOutStreamBuf
    : public std::streambuf

Base Classes

Name

Description

std::streambuf

Member Functions

Name

Description

FixedMemOutStreamBuf [constructor]

Create a stream buffer that writes into a client‐supplied buffer.

~FixedMemOutStreamBuf [destructor] [virtual]

Destroy this stream buffer.

capacity

Return the number of characters in the buffer held by this stream buffer. See length, below, for the span of bytes actually written.

data

Return a pointer providing modifiable access to the character buffer held by this stream buffer (supplied at construction).

data

Return a pointer providing non‐modifiable access to the character buffer held by this stream buffer (supplied at construction).

length

Return the number of characters written to this stream buffer.

Protected Member Functions

Name

Description

seekoff [virtual]

Set the put position relative to a fixed base position.

seekpos [virtual]

Set the put position to an absolute position.

setbuf [virtual]

Reinitialize this stream buffer with a new character buffer.

Created with MrDocs