Share via


streambuf::buffer_size Method

Gets the stream buffer size, if one has been set.

virtual size_t buffer_size(
   std::ios_base::openmode direction = std::ios_base::in
) const;

Parameters

  • direction
    The direction of buffering (in or out)

Return Value

The size of the internal buffer (for the given direction).

Remarks

An implementation that does not support buffering will always return 0.

Requirements

Header: astreambuf.h

Namespace: concurrency::streams

See Also

Reference

streambuf Class