Share via


streambuf::set_buffer_size Method

Sets the stream buffer implementation to buffer or not buffer.

virtual void set_buffer_size(
   size_t size,
   std::ios_base::openmode direction = std::ios_base::in
);

Parameters

  • size
    The size to use for internal buffering, 0 if no buffering should be done.

  • direction
    The direction of buffering (in or out)

Remarks

An implementation that does not support buffering will silently ignore calls to this function and it will not have any effect on what is returned by subsequent calls to ::buffer_size method.

Requirements

Header: astreambuf.h

Namespace: concurrency::streams

See Also

Reference

streambuf Class