11 #ifndef ASIO_WINDOWS_BASIC_RANDOM_ACCESS_HANDLE_HPP 12 #define ASIO_WINDOWS_BASIC_RANDOM_ACCESS_HANDLE_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 20 #if defined(ASIO_HAS_WINDOWS_RANDOM_ACCESS_HANDLE) \ 21 || defined(GENERATING_DOCUMENTATION) 44 template <
typename RandomAccessHandleService = random_access_handle_service>
45 class basic_random_access_handle
46 :
public basic_handle<RandomAccessHandleService>
51 typedef typename RandomAccessHandleService::native_handle_type native_type;
54 typedef typename RandomAccessHandleService::native_handle_type
67 : basic_handle<RandomAccessHandleService>(io_service)
85 const native_handle_type& handle)
86 : basic_handle<RandomAccessHandleService>(io_service, handle)
90 #if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION) 102 basic_random_access_handle(basic_random_access_handle&& other)
103 : basic_handle<RandomAccessHandleService>(
120 basic_random_access_handle& operator=(basic_random_access_handle&& other)
122 basic_handle<RandomAccessHandleService>::operator=(
126 #endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION) 157 template <
typename ConstBufferSequence>
158 std::size_t write_some_at(uint64_t
offset,
159 const ConstBufferSequence&
buffers)
162 std::size_t
s = this->get_service().write_some_at(
163 this->get_implementation(), offset, buffers, ec);
186 template <
typename ConstBufferSequence>
187 std::size_t write_some_at(uint64_t offset,
190 return this->get_service().write_some_at(
191 this->get_implementation(), offset, buffers, ec);
231 template <
typename ConstBufferSequence,
typename WriteHandler>
234 async_write_some_at(uint64_t offset,
235 const ConstBufferSequence& buffers,
242 return this->get_service().async_write_some_at(this->get_implementation(),
276 template <typename MutableBufferSequence>
277 std::
size_t read_some_at(uint64_t offset,
278 const MutableBufferSequence& buffers)
281 std::size_t s = this->get_service().read_some_at(
282 this->get_implementation(), offset, buffers, ec);
306 template <
typename MutableBufferSequence>
307 std::size_t read_some_at(uint64_t offset,
310 return this->get_service().read_some_at(
311 this->get_implementation(), offset, buffers, ec);
352 template <
typename MutableBufferSequence,
typename ReadHandler>
355 async_read_some_at(uint64_t offset,
356 const MutableBufferSequence& buffers,
363 return this->get_service().async_read_some_at(this->get_implementation(),
371 #include "asio/detail/pop_options.hpp" 373 #endif // defined(ASIO_HAS_WINDOWS_RANDOM_ACCESS_HANDLE) 376 #endif // ASIO_WINDOWS_BASIC_RANDOM_ACCESS_HANDLE_HPP void throw_error(const asio::error_code &err)
Provides core I/O functionality.
ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler, void(asio::error_code, Iterator)) async_connect(basic_socket< Protocol
const MutableBufferSequence & buffers
#define ASIO_READ_HANDLER_CHECK(handler_type, handler)
asio::basic_streambuf< Allocator > CompletionCondition ASIO_MOVE_ARG(ReadHandler) handler)
Class to represent an error code value.
#define ASIO_MOVE_CAST(type)
#define ASIO_WRITE_HANDLER_CHECK(handler_type, handler)