|
streambuf::pubsetbufpublic member function
streambuf* pubsetbuf ( char* s, streamsize n ); Set buffer array Calls the protected virtual member setbuf, which is intended to set the array pointed by parameter s as the internal character sequence to be used by the stream buffer object, although specific implementations may vary.If both parameters are zero, the object becomes unbuffered. Parameters
Return ValueIn case of success, the member function should return a pointer to the object (this pointer), otherwise a null pointer.Example
The code in this example sets a new buffer of 512 characters for filestr's strembuf object if the iostream implementation allows for it. Basic template member declaration( basic_streambuf<charT,traits> )
See also
|