The boost::asio::buffer_size function determines the total number of bytes in a buffer or buffer sequence. More...
Functions | |
std::size_t | boost::asio::buffer_size (const mutable_buffer &b) |
Get the number of bytes in a modifiable buffer. More... | |
std::size_t | boost::asio::buffer_size (const mutable_buffers_1 &b) |
Get the number of bytes in a modifiable buffer. More... | |
std::size_t | boost::asio::buffer_size (const const_buffer &b) |
Get the number of bytes in a non-modifiable buffer. More... | |
std::size_t | boost::asio::buffer_size (const const_buffers_1 &b) |
Get the number of bytes in a non-modifiable buffer. More... | |
template<typename BufferSequence > | |
std::size_t | boost::asio::buffer_size (const BufferSequence &b) |
Get the total number of bytes in a buffer sequence. More... | |
The boost::asio::buffer_size function determines the total number of bytes in a buffer or buffer sequence.
|
inline |
#include <boost_1_57_0/boost/asio/buffer.hpp>
Get the number of bytes in a modifiable buffer.
References boost::asio::detail::buffer_size_helper().
Referenced by boost::asio::buffers_iterator< BufferSequence, ByteType >::begin(), boost::asio::buffer(), boost::asio::buffer_copy(), boost::iostreams::copy(), boost::iostreams::detail::copy_impl(), boost::asio::buffers_iterator< BufferSequence, ByteType >::end(), boost::asio::mutable_buffer::operator+(), boost::asio::const_buffer::operator+(), boost::asio::basic_streambuf< Allocator >::overflow(), and boost::asio::basic_socket_streambuf< Protocol, StreamSocketService, Time, TimeTraits, TimerService >::overflow().
|
inline |
#include <boost_1_57_0/boost/asio/buffer.hpp>
Get the number of bytes in a modifiable buffer.
References boost::asio::detail::buffer_size_helper().
|
inline |
#include <boost_1_57_0/boost/asio/buffer.hpp>
Get the number of bytes in a non-modifiable buffer.
References boost::asio::detail::buffer_size_helper().
|
inline |
#include <boost_1_57_0/boost/asio/buffer.hpp>
Get the number of bytes in a non-modifiable buffer.
References boost::asio::detail::buffer_size_helper().
|
inline |
#include <boost_1_57_0/boost/asio/buffer.hpp>
Get the total number of bytes in a buffer sequence.
The BufferSequence
template parameter may meet either of the ConstBufferSequence
or MutableBufferSequence
type requirements.
References boost::asio::detail::buffer_size_helper(), and boost::asio::end.