Skip to content

asio::mutable_buffer

Holds a buffer that can be modified.

詳細情報

メンバー

mutable_buffer()

Construct an empty buffer.

asio::mutable_buffer::mutable_buffer() ASIO_NOEXCEPT

mutable_buffer()

Construct a buffer to represent a given memory range.

asio::mutable_buffer::mutable_buffer(void *data, std::size_t size) ASIO_NOEXCEPT

引数

  • void * data
  • std::size_t size

data()

Get a pointer to the beginning of the memory range.

void* asio::mutable_buffer::data() const ASIO_NOEXCEPT

戻り値

void *

size()

Get the size of the memory range.

std::size_t asio::mutable_buffer::size() const ASIO_NOEXCEPT

戻り値

std::size_t

operator+=()

Move the start of the buffer by the specified number of bytes.

mutable_buffer& asio::mutable_buffer::operator+=(std::size_t n) ASIO_NOEXCEPT

引数

  • std::size_t n

戻り値

mutable_buffer&

operator+()

Create a new modifiable buffer that is offset from the start of another.

mutable_buffer operator+(const mutable_buffer &b, std::size_t n) ASIO_NOEXCEPT

引数

  • const& b
  • std::size_t n

戻り値

mutable_buffer

operator+()

Create a new modifiable buffer that is offset from the start of another.

mutable_buffer operator+(std::size_t n, const mutable_buffer &b) ASIO_NOEXCEPT

引数

  • std::size_t n
  • const& b

戻り値

mutable_buffer