Realistic 3D camera system
3D camera system components
read_at.hpp
Go to the documentation of this file.
1 //
2 // read_at.hpp
3 // ~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_READ_AT_HPP
12 #define ASIO_READ_AT_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 #include <cstddef>
20 #include "asio/async_result.hpp"
22 #include "asio/detail/cstdint.hpp"
23 #include "asio/error.hpp"
24 
26 
27 namespace asio {
28 
36 
39 
77 template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence>
78 std::size_t read_at(SyncRandomAccessReadDevice& d,
79  uint64_t offset, const MutableBufferSequence& buffers);
80 
83 
122 template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence>
123 std::size_t read_at(SyncRandomAccessReadDevice& d,
124  uint64_t offset, const MutableBufferSequence& buffers,
125  asio::error_code& ec);
126 
129 
177 template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence,
178  typename CompletionCondition>
179 std::size_t read_at(SyncRandomAccessReadDevice& d,
180  uint64_t offset, const MutableBufferSequence& buffers,
181  CompletionCondition completion_condition);
182 
185 
226 template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence,
227  typename CompletionCondition>
228 std::size_t read_at(SyncRandomAccessReadDevice& d,
229  uint64_t offset, const MutableBufferSequence& buffers,
230  CompletionCondition completion_condition, asio::error_code& ec);
231 
232 #if !defined(ASIO_NO_IOSTREAM)
233 
236 
262 template <typename SyncRandomAccessReadDevice, typename Allocator>
263 std::size_t read_at(SyncRandomAccessReadDevice& d,
264  uint64_t offset, basic_streambuf<Allocator>& b);
265 
268 
294 template <typename SyncRandomAccessReadDevice, typename Allocator>
295 std::size_t read_at(SyncRandomAccessReadDevice& d,
296  uint64_t offset, basic_streambuf<Allocator>& b,
297  asio::error_code& ec);
298 
301 
336 template <typename SyncRandomAccessReadDevice, typename Allocator,
337  typename CompletionCondition>
338 std::size_t read_at(SyncRandomAccessReadDevice& d,
339  uint64_t offset, basic_streambuf<Allocator>& b,
340  CompletionCondition completion_condition);
341 
344 
380 template <typename SyncRandomAccessReadDevice, typename Allocator,
381  typename CompletionCondition>
382 std::size_t read_at(SyncRandomAccessReadDevice& d,
383  uint64_t offset, basic_streambuf<Allocator>& b,
384  CompletionCondition completion_condition, asio::error_code& ec);
385 
386 #endif // !defined(ASIO_NO_IOSTREAM)
387 
396 
399 
456 template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence,
457  typename ReadHandler>
458 ASIO_INITFN_RESULT_TYPE(ReadHandler,
459  void (asio::error_code, std::size_t))
460 async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset,
461  const MutableBufferSequence& buffers,
462  ASIO_MOVE_ARG(ReadHandler) handler);
463 
466 
529 template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence,
530  typename CompletionCondition, typename ReadHandler>
531 ASIO_INITFN_RESULT_TYPE(ReadHandler,
532  void (asio::error_code, std::size_t))
533 async_read_at(AsyncRandomAccessReadDevice& d,
534  uint64_t offset, const MutableBufferSequence& buffers,
535  CompletionCondition completion_condition,
536  ASIO_MOVE_ARG(ReadHandler) handler);
537 
538 #if !defined(ASIO_NO_IOSTREAM)
539 
542 
585 template <typename AsyncRandomAccessReadDevice, typename Allocator,
586  typename ReadHandler>
587 ASIO_INITFN_RESULT_TYPE(ReadHandler,
588  void (asio::error_code, std::size_t))
589 async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset,
590  basic_streambuf<Allocator>& b, ASIO_MOVE_ARG(ReadHandler) handler);
591 
594 
645 template <typename AsyncRandomAccessReadDevice, typename Allocator,
646  typename CompletionCondition, typename ReadHandler>
647 ASIO_INITFN_RESULT_TYPE(ReadHandler,
648  void (asio::error_code, std::size_t))
649 async_read_at(AsyncRandomAccessReadDevice& d,
650  uint64_t offset, basic_streambuf<Allocator>& b,
651  CompletionCondition completion_condition,
652  ASIO_MOVE_ARG(ReadHandler) handler);
653 
654 #endif // !defined(ASIO_NO_IOSTREAM)
655 
658 } // namespace asio
659 
661 
662 #include "asio/impl/read_at.hpp"
663 
664 #endif // ASIO_READ_AT_HPP
STL namespace.
uint64_t offset
Definition: read_at.hpp:571
asio::basic_streambuf< Allocator > & b
Definition: read.hpp:702
ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler, void(asio::error_code, Iterator)) async_connect(basic_socket< Protocol
std::size_t read_at(SyncRandomAccessReadDevice &d, uint64_t offset, const MutableBufferSequence &buffers, CompletionCondition completion_condition, asio::error_code &ec)
Definition: read_at.hpp:39
const MutableBufferSequence & buffers
Definition: read.hpp:521
asio::basic_streambuf< Allocator > CompletionCondition ASIO_MOVE_ARG(ReadHandler) handler)
Definition: read.hpp:704
Class to represent an error code value.
Definition: error_code.hpp:80
const MutableBufferSequence CompletionCondition completion_condition
Definition: read.hpp:521