Skip to content

asio::const_buffer

Holds a buffer that cannot be modified.

詳細情報

メンバー

const_buffer()

Construct an empty buffer.

asio::const_buffer::const_buffer() ASIO_NOEXCEPT

const_buffer()

Construct a buffer to represent a given memory range.

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

引数

  • constvoid * data
  • std::size_t size

const_buffer()

Construct a non-modifiable buffer from a modifiable one.

asio::const_buffer::const_buffer(const mutable_buffer &b) ASIO_NOEXCEPT

引数

  • const& b

data()

Get a pointer to the beginning of the memory range.

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

戻り値

constvoid *

size()

Get the size of the memory range.

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

戻り値

std::size_t

operator+=()

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

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

引数

  • std::size_t n

戻り値

const_buffer&

operator+()

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

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

引数

  • const& b
  • std::size_t n

戻り値

const_buffer

operator+()

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

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

引数

  • std::size_t n
  • const& b

戻り値

const_buffer