Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

basic_streambuf_ref

Adapts basic_streambuf to the dynamic buffer sequence type requirements.

template<
    typename Allocator = std::allocator<char>>
class basic_streambuf_ref
Types

Name

Description

const_buffers_type

The type used to represent the input sequence as a list of buffers.

mutable_buffers_type

The type used to represent the output sequence as a list of buffers.

Member Functions

Name

Description

basic_streambuf_ref [constructor]

Construct a basic_streambuf_ref for the given basic_streambuf object.

Copy construct a basic_streambuf_ref.

Move construct a basic_streambuf_ref.

capacity

Get the current capacity of the dynamic buffer.

commit

Move bytes from the output sequence to the input sequence.

consume

Remove characters from the input sequence.

data

Get a list of buffers that represents the input sequence.

max_size

Get the maximum size of the dynamic buffer.

prepare

Get a list of buffers that represents the output sequence, with the given size.

size

Get the size of the input sequence.

Requirements

Header: boost/asio/basic_streambuf.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext