Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
buffer.hpp File Reference
#include <boost/asio/detail/config.hpp>
#include <cstddef>
#include <cstring>
#include <string>
#include <vector>
#include <boost/asio/detail/array_fwd.hpp>
#include <boost/asio/detail/push_options.hpp>
#include <boost/asio/detail/pop_options.hpp>
Include dependency graph for buffer.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  boost::asio::mutable_buffer
 Holds a buffer that can be modified. More...
 
class  boost::asio::mutable_buffers_1
 Adapts a single modifiable buffer so that it meets the requirements of the MutableBufferSequence concept. More...
 
class  boost::asio::const_buffer
 Holds a buffer that cannot be modified. More...
 
class  boost::asio::const_buffers_1
 Adapts a single non-modifiable buffer so that it meets the requirements of the ConstBufferSequence concept. More...
 
class  boost::asio::null_buffers
 An implementation of both the ConstBufferSequence and MutableBufferSequence concepts to represent a null buffer sequence. More...
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::asio
 
 boost::asio::detail
 

Functions

void * boost::asio::detail::buffer_cast_helper (const mutable_buffer &)
 
const void * boost::asio::detail::buffer_cast_helper (const const_buffer &)
 
std::size_t boost::asio::detail::buffer_size_helper (const mutable_buffer &)
 
std::size_t boost::asio::detail::buffer_size_helper (const const_buffer &)
 
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...
 
template<typename PointerToPodType >
PointerToPodType boost::asio::buffer_cast (const mutable_buffer &b)
 Cast a non-modifiable buffer to a specified pointer to POD type. More...
 
template<typename PointerToPodType >
PointerToPodType boost::asio::buffer_cast (const const_buffer &b)
 Cast a non-modifiable buffer to a specified pointer to POD type. More...
 
mutable_buffers_1 boost::asio::buffer (const mutable_buffer &b)
 Create a new modifiable buffer from an existing buffer. More...
 
mutable_buffers_1 boost::asio::buffer (const mutable_buffer &b, std::size_t max_size_in_bytes)
 Create a new modifiable buffer from an existing buffer. More...
 
const_buffers_1 boost::asio::buffer (const const_buffer &b)
 Create a new non-modifiable buffer from an existing buffer. More...
 
const_buffers_1 boost::asio::buffer (const const_buffer &b, std::size_t max_size_in_bytes)
 Create a new non-modifiable buffer from an existing buffer. More...
 
mutable_buffers_1 boost::asio::buffer (void *data, std::size_t size_in_bytes)
 Create a new modifiable buffer that represents the given memory range. More...
 
const_buffers_1 boost::asio::buffer (const void *data, std::size_t size_in_bytes)
 Create a new non-modifiable buffer that represents the given memory range. More...
 
template<typename PodType , std::size_t N>
mutable_buffers_1 boost::asio::buffer (PodType(&data)[N])
 Create a new modifiable buffer that represents the given POD array. More...
 
template<typename PodType , std::size_t N>
mutable_buffers_1 boost::asio::buffer (PodType(&data)[N], std::size_t max_size_in_bytes)
 Create a new modifiable buffer that represents the given POD array. More...
 
template<typename PodType , std::size_t N>
const_buffers_1 boost::asio::buffer (const PodType(&data)[N])
 Create a new non-modifiable buffer that represents the given POD array. More...
 
template<typename PodType , std::size_t N>
const_buffers_1 boost::asio::buffer (const PodType(&data)[N], std::size_t max_size_in_bytes)
 Create a new non-modifiable buffer that represents the given POD array. More...
 
template<typename PodType , std::size_t N>
mutable_buffers_1 boost::asio::buffer (boost::array< PodType, N > &data)
 Create a new modifiable buffer that represents the given POD array. More...
 
template<typename PodType , std::size_t N>
mutable_buffers_1 boost::asio::buffer (boost::array< PodType, N > &data, std::size_t max_size_in_bytes)
 Create a new modifiable buffer that represents the given POD array. More...
 
template<typename PodType , std::size_t N>
const_buffers_1 boost::asio::buffer (boost::array< const PodType, N > &data)
 Create a new non-modifiable buffer that represents the given POD array. More...
 
template<typename PodType , std::size_t N>
const_buffers_1 boost::asio::buffer (boost::array< const PodType, N > &data, std::size_t max_size_in_bytes)
 Create a new non-modifiable buffer that represents the given POD array. More...
 
template<typename PodType , typename Allocator >
mutable_buffers_1 boost::asio::buffer (std::vector< PodType, Allocator > &data)
 Create a new modifiable buffer that represents the given POD vector. More...
 
template<typename PodType , typename Allocator >
mutable_buffers_1 boost::asio::buffer (std::vector< PodType, Allocator > &data, std::size_t max_size_in_bytes)
 Create a new modifiable buffer that represents the given POD vector. More...
 
template<typename PodType , typename Allocator >
const_buffers_1 boost::asio::buffer (const std::vector< PodType, Allocator > &data)
 Create a new non-modifiable buffer that represents the given POD vector. More...
 
template<typename PodType , typename Allocator >
const_buffers_1 boost::asio::buffer (const std::vector< PodType, Allocator > &data, std::size_t max_size_in_bytes)
 Create a new non-modifiable buffer that represents the given POD vector. More...
 
template<typename Elem , typename Traits , typename Allocator >
const_buffers_1 boost::asio::buffer (const std::basic_string< Elem, Traits, Allocator > &data)
 Create a new non-modifiable buffer that represents the given string. More...
 
template<typename Elem , typename Traits , typename Allocator >
const_buffers_1 boost::asio::buffer (const std::basic_string< Elem, Traits, Allocator > &data, std::size_t max_size_in_bytes)
 Create a new non-modifiable buffer that represents the given string. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const const_buffer &source)
 Copies bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const const_buffers_1 &source)
 Copies bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const mutable_buffer &source)
 Copies bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const mutable_buffers_1 &source)
 Copies bytes from a source buffer to a target buffer. More...
 
template<typename ConstBufferSequence >
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const ConstBufferSequence &source)
 Copies bytes from a source buffer sequence to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const const_buffer &source)
 Copies bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const const_buffers_1 &source)
 Copies bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const mutable_buffer &source)
 Copies bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const mutable_buffers_1 &source)
 Copies bytes from a source buffer to a target buffer. More...
 
template<typename ConstBufferSequence >
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const ConstBufferSequence &source)
 Copies bytes from a source buffer sequence to a target buffer. More...
 
template<typename MutableBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const const_buffer &source)
 Copies bytes from a source buffer to a target buffer sequence. More...
 
template<typename MutableBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const const_buffers_1 &source)
 Copies bytes from a source buffer to a target buffer sequence. More...
 
template<typename MutableBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const mutable_buffer &source)
 Copies bytes from a source buffer to a target buffer sequence. More...
 
template<typename MutableBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const mutable_buffers_1 &source)
 Copies bytes from a source buffer to a target buffer sequence. More...
 
template<typename MutableBufferSequence , typename ConstBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const ConstBufferSequence &source)
 Copies bytes from a source buffer sequence to a target buffer sequence. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const const_buffer &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const const_buffers_1 &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const mutable_buffer &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const mutable_buffers_1 &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer. More...
 
template<typename ConstBufferSequence >
std::size_t boost::asio::buffer_copy (const mutable_buffer &target, const ConstBufferSequence &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer sequence to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const const_buffer &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const const_buffers_1 &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const mutable_buffer &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer. More...
 
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const mutable_buffers_1 &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer. More...
 
template<typename ConstBufferSequence >
std::size_t boost::asio::buffer_copy (const mutable_buffers_1 &target, const ConstBufferSequence &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer sequence to a target buffer. More...
 
template<typename MutableBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const const_buffer &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer sequence. More...
 
template<typename MutableBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const const_buffers_1 &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer sequence. More...
 
template<typename MutableBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const mutable_buffer &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer sequence. More...
 
template<typename MutableBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const mutable_buffers_1 &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer to a target buffer sequence. More...
 
template<typename MutableBufferSequence , typename ConstBufferSequence >
std::size_t boost::asio::buffer_copy (const MutableBufferSequence &target, const ConstBufferSequence &source, std::size_t max_bytes_to_copy)
 Copies a limited number of bytes from a source buffer sequence to a target buffer sequence. More...