Skip to content

asio::basic_streambuf_ref

Adapts to the dynamic buffer sequence type requirements.

詳細情報

メンバー

basic_streambuf_ref()

Construct a for the given object.

asio::basic_streambuf_ref< Allocator >::basic_streambuf_ref(basic_streambuf< Allocator > &sb)

引数

  • basic_streambuf< Allocator > & sb

basic_streambuf_ref()

Copy construct a .

asio::basic_streambuf_ref< Allocator >::basic_streambuf_ref(const basic_streambuf_ref &other) ASIO_NOEXCEPT

引数

  • const& other

size()

Get the size of the input sequence.

std::size_t asio::basic_streambuf_ref< Allocator >::size() const ASIO_NOEXCEPT

戻り値

std::size_t

max_size()

Get the maximum size of the dynamic buffer.

std::size_t asio::basic_streambuf_ref< Allocator >::max_size() const ASIO_NOEXCEPT

戻り値

std::size_t

capacity()

Get the current capacity of the dynamic buffer.

std::size_t asio::basic_streambuf_ref< Allocator >::capacity() const ASIO_NOEXCEPT

戻り値

std::size_t

data()

Get a list of buffers that represents the input sequence.

const_buffers_type asio::basic_streambuf_ref< Allocator >::data() const ASIO_NOEXCEPT

戻り値

const_buffers_type

prepare()

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

mutable_buffers_type asio::basic_streambuf_ref< Allocator >::prepare(std::size_t n)

引数

  • std::size_t n

戻り値

mutable_buffers_type

commit()

Move bytes from the output sequence to the input sequence.

void asio::basic_streambuf_ref< Allocator >::commit(std::size_t n)

引数

  • std::size_t n

consume()

Remove characters from the input sequence.

void asio::basic_streambuf_ref< Allocator >::consume(std::size_t n)

引数

  • std::size_t n