update boost on linux
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// read_at.hpp
|
||||
// ~~~~~~~~~~~
|
||||
//
|
||||
// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
||||
// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
@@ -18,10 +18,13 @@
|
||||
#include <boost/asio/detail/config.hpp>
|
||||
#include <cstddef>
|
||||
#include <boost/asio/async_result.hpp>
|
||||
#include <boost/asio/basic_streambuf_fwd.hpp>
|
||||
#include <boost/asio/detail/cstdint.hpp>
|
||||
#include <boost/asio/error.hpp>
|
||||
|
||||
#if !defined(BOOST_ASIO_NO_EXTENSIONS)
|
||||
# include <boost/asio/basic_streambuf_fwd.hpp>
|
||||
#endif // !defined(BOOST_ASIO_NO_EXTENSIONS)
|
||||
|
||||
#include <boost/asio/detail/push_options.hpp>
|
||||
|
||||
namespace boost {
|
||||
@@ -30,8 +33,8 @@ namespace asio {
|
||||
/**
|
||||
* @defgroup read_at boost::asio::read_at
|
||||
*
|
||||
* @brief Attempt to read a certain amount of data at the specified offset
|
||||
* before returning.
|
||||
* @brief The @c read_at function is a composed operation that reads a certain
|
||||
* amount of data at the specified offset before returning.
|
||||
*/
|
||||
/*@{*/
|
||||
|
||||
@@ -230,6 +233,7 @@ std::size_t read_at(SyncRandomAccessReadDevice& d,
|
||||
uint64_t offset, const MutableBufferSequence& buffers,
|
||||
CompletionCondition completion_condition, boost::system::error_code& ec);
|
||||
|
||||
#if !defined(BOOST_ASIO_NO_EXTENSIONS)
|
||||
#if !defined(BOOST_ASIO_NO_IOSTREAM)
|
||||
|
||||
/// Attempt to read a certain amount of data at the specified offset before
|
||||
@@ -385,13 +389,14 @@ std::size_t read_at(SyncRandomAccessReadDevice& d,
|
||||
CompletionCondition completion_condition, boost::system::error_code& ec);
|
||||
|
||||
#endif // !defined(BOOST_ASIO_NO_IOSTREAM)
|
||||
#endif // !defined(BOOST_ASIO_NO_EXTENSIONS)
|
||||
|
||||
/*@}*/
|
||||
/**
|
||||
* @defgroup async_read_at boost::asio::async_read_at
|
||||
*
|
||||
* @brief Start an asynchronous operation to read a certain amount of data at
|
||||
* the specified offset.
|
||||
* @brief The @c async_read_at function is a composed asynchronous operation
|
||||
* that reads a certain amount of data at the specified offset.
|
||||
*/
|
||||
/*@{*/
|
||||
|
||||
@@ -435,9 +440,9 @@ std::size_t read_at(SyncRandomAccessReadDevice& d,
|
||||
* std::size_t bytes_transferred
|
||||
* ); @endcode
|
||||
* Regardless of whether the asynchronous operation completes immediately or
|
||||
* not, the handler will not be invoked from within this function. Invocation of
|
||||
* the handler will be performed in a manner equivalent to using
|
||||
* boost::asio::io_service::post().
|
||||
* not, the handler will not be invoked from within this function. On
|
||||
* immediate completion, invocation of the handler will be performed in a
|
||||
* manner equivalent to using boost::asio::post().
|
||||
*
|
||||
* @par Example
|
||||
* To read into a single data buffer use the @ref buffer function as follows:
|
||||
@@ -513,9 +518,9 @@ async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset,
|
||||
* std::size_t bytes_transferred
|
||||
* ); @endcode
|
||||
* Regardless of whether the asynchronous operation completes immediately or
|
||||
* not, the handler will not be invoked from within this function. Invocation of
|
||||
* the handler will be performed in a manner equivalent to using
|
||||
* boost::asio::io_service::post().
|
||||
* not, the handler will not be invoked from within this function. On
|
||||
* immediate completion, invocation of the handler will be performed in a
|
||||
* manner equivalent to using boost::asio::post().
|
||||
*
|
||||
* @par Example
|
||||
* To read into a single data buffer use the @ref buffer function as follows:
|
||||
@@ -536,6 +541,7 @@ async_read_at(AsyncRandomAccessReadDevice& d,
|
||||
CompletionCondition completion_condition,
|
||||
BOOST_ASIO_MOVE_ARG(ReadHandler) handler);
|
||||
|
||||
#if !defined(BOOST_ASIO_NO_EXTENSIONS)
|
||||
#if !defined(BOOST_ASIO_NO_IOSTREAM)
|
||||
|
||||
/// Start an asynchronous operation to read a certain amount of data at the
|
||||
@@ -573,9 +579,9 @@ async_read_at(AsyncRandomAccessReadDevice& d,
|
||||
* std::size_t bytes_transferred
|
||||
* ); @endcode
|
||||
* Regardless of whether the asynchronous operation completes immediately or
|
||||
* not, the handler will not be invoked from within this function. Invocation of
|
||||
* the handler will be performed in a manner equivalent to using
|
||||
* boost::asio::io_service::post().
|
||||
* not, the handler will not be invoked from within this function. On
|
||||
* immediate completion, invocation of the handler will be performed in a
|
||||
* manner equivalent to using boost::asio::post().
|
||||
*
|
||||
* @note This overload is equivalent to calling:
|
||||
* @code boost::asio::async_read_at(
|
||||
@@ -639,9 +645,9 @@ async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset,
|
||||
* std::size_t bytes_transferred
|
||||
* ); @endcode
|
||||
* Regardless of whether the asynchronous operation completes immediately or
|
||||
* not, the handler will not be invoked from within this function. Invocation of
|
||||
* the handler will be performed in a manner equivalent to using
|
||||
* boost::asio::io_service::post().
|
||||
* not, the handler will not be invoked from within this function. On
|
||||
* immediate completion, invocation of the handler will be performed in a
|
||||
* manner equivalent to using boost::asio::post().
|
||||
*/
|
||||
template <typename AsyncRandomAccessReadDevice, typename Allocator,
|
||||
typename CompletionCondition, typename ReadHandler>
|
||||
@@ -653,6 +659,7 @@ async_read_at(AsyncRandomAccessReadDevice& d,
|
||||
BOOST_ASIO_MOVE_ARG(ReadHandler) handler);
|
||||
|
||||
#endif // !defined(BOOST_ASIO_NO_IOSTREAM)
|
||||
#endif // !defined(BOOST_ASIO_NO_EXTENSIONS)
|
||||
|
||||
/*@}*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user