
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>filebuf::setbuf</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
filebuf::setbuf
Usage
#include <fstream.hpp>
streambuf *filebuf::setbuf(char *memory, int length);
Description
Nominally offers a buffer area for use by the filebuf. The offer is
ignored unless memory is zero, or if its length is less than or equal to
zero, in which case unbuffered operation is initiated.
Example
filebuf fb(fd);
...; // buffered operations
fb.setbuf(0,0);
...; // unbuffered operations
Return Value
A pointer to the streambuf for which it was called if the operation
succeeded (unbuffered operation initiated), zero otherwise.
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson