Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::asio::buffer_size

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...
 

Detailed Description

The boost::asio::buffer_size function determines the total number of bytes in a buffer or buffer sequence.

Function Documentation

std::size_t boost::asio::buffer_size ( const mutable_buffers_1 &  b)
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().

std::size_t boost::asio::buffer_size ( const const_buffer &  b)
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().

std::size_t boost::asio::buffer_size ( const const_buffers_1 &  b)
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().

template<typename BufferSequence >
std::size_t boost::asio::buffer_size ( const BufferSequence &  b)
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.