Share via


streambuf::streambuf

Protected

streambuf();

streambuf( char* pr**, int** nLength );

END Protected

Parameters

pr

A pointer to a previously allocated reserve area of length nLength. A NULL value indicates an unbuffered stream.

nLength

The length (in bytes) of the reserve area. A length of 0 indicates an unbuffered stream.

Remarks

The first constructor makes an uninitialized streambuf object. This object is not suitable for use until a setbuf call is made. A derived class constructor usually calls setbuf or uses the second constructor.

The second constructor initializes the streambuf object with the specified reserve area or marks it as unbuffered.

streambuf OverviewStream Buffer Classes

See Also   streambuf::setbuf