basic_streambuf::setbuf

A protected virtual member function that performs an operation particular to each derived stream buffer.

virtual basic_streambuf<Elem, Tr> *setbuf(
    char_type *_Buffer,
    streamsize _Count
);

Parameters

  • _Buffer
    Pointer to a buffer.

  • _Count
    Size of the buffer.

Return Value

The default behavior is to return this.

Remarks

See basic_filebuf. setbuf provides an area of memory for the streambuf object to use. How the buffer is used in defined in the derived classes.

Requirements

Header: <streambuf>

Namespace: std

See Also

Reference

basic_streambuf Class

iostream Programming

iostreams Conventions

Other Resources

basic_streambuf Members