~ubuntu-branches/ubuntu/maverick/libtorrent-rasterbar/maverick

« back to all changes in this revision

Viewing changes to include/libtorrent/asio/write_at.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2010-08-10 12:59:37 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810125937-jbcmmf17y8yo9hgz
Tags: 0.15.0-0ubuntu1
* New upstream version.
* debian/patches/100_fix_html_docs.patch: refreshed.
* debian/control: bump up standards-version to 3.9.1 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// write_at.hpp
3
 
// ~~~~~~~~~~~~
4
 
//
5
 
// Copyright (c) 2003-2008 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_WRITE_AT_HPP
12
 
#define ASIO_WRITE_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/push_options.hpp"
19
 
 
20
 
#include "asio/detail/push_options.hpp"
21
 
#include <cstddef>
22
 
#include <boost/config.hpp>
23
 
#include <boost/cstdint.hpp>
24
 
#include "asio/detail/pop_options.hpp"
25
 
 
26
 
#include "asio/basic_streambuf.hpp"
27
 
#include "asio/error.hpp"
28
 
 
29
 
namespace asio {
30
 
 
31
 
/**
32
 
 * @defgroup write_at asio::write_at
33
 
 *
34
 
 * @brief Write a certain amount of data at a specified offset before returning.
35
 
 */
36
 
/*@{*/
37
 
 
38
 
/// Write all of the supplied data at the specified offset before returning.
39
 
/**
40
 
 * This function is used to write a certain number of bytes of data to a random
41
 
 * access device at a specified offset. The call will block until one of the
42
 
 * following conditions is true:
43
 
 *
44
 
 * @li All of the data in the supplied buffers has been written. That is, the
45
 
 * bytes transferred is equal to the sum of the buffer sizes.
46
 
 *
47
 
 * @li An error occurred.
48
 
 *
49
 
 * This operation is implemented in terms of one or more calls to the device's
50
 
 * write_some_at function.
51
 
 *
52
 
 * @param d The device to which the data is to be written. The type must support
53
 
 * the SyncRandomAccessWriteDevice concept.
54
 
 *
55
 
 * @param offset The offset at which the data will be written.
56
 
 *
57
 
 * @param buffers One or more buffers containing the data to be written. The sum
58
 
 * of the buffer sizes indicates the maximum number of bytes to write to the
59
 
 * device.
60
 
 *
61
 
 * @returns The number of bytes transferred.
62
 
 *
63
 
 * @throws asio::system_error Thrown on failure.
64
 
 *
65
 
 * @par Example
66
 
 * To write a single data buffer use the @ref buffer function as follows:
67
 
 * @code asio::write_at(d, 42, asio::buffer(data, size)); @endcode
68
 
 * See the @ref buffer documentation for information on writing multiple
69
 
 * buffers in one go, and how to use it with arrays, boost::array or
70
 
 * std::vector.
71
 
 *
72
 
 * @note This overload is equivalent to calling:
73
 
 * @code asio::write_at(
74
 
 *     d, offset, buffers,
75
 
 *     asio::transfer_all()); @endcode
76
 
 */
77
 
template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence>
78
 
std::size_t write_at(SyncRandomAccessWriteDevice& d,
79
 
    boost::uint64_t offset, const ConstBufferSequence& buffers);
80
 
 
81
 
/// Write a certain amount of data at a specified offset before returning.
82
 
/**
83
 
 * This function is used to write a certain number of bytes of data to a random
84
 
 * access device at a specified offset. The call will block until one of the
85
 
 * following conditions is true:
86
 
 *
87
 
 * @li All of the data in the supplied buffers has been written. That is, the
88
 
 * bytes transferred is equal to the sum of the buffer sizes.
89
 
 *
90
 
 * @li The completion_condition function object returns true.
91
 
 *
92
 
 * This operation is implemented in terms of one or more calls to the device's
93
 
 * write_some_at function.
94
 
 *
95
 
 * @param d The device to which the data is to be written. The type must support
96
 
 * the SyncRandomAccessWriteDevice concept.
97
 
 *
98
 
 * @param offset The offset at which the data will be written.
99
 
 *
100
 
 * @param buffers One or more buffers containing the data to be written. The sum
101
 
 * of the buffer sizes indicates the maximum number of bytes to write to the
102
 
 * device.
103
 
 *
104
 
 * @param completion_condition The function object to be called to determine
105
 
 * whether the write operation is complete. The signature of the function object
106
 
 * must be:
107
 
 * @code bool completion_condition(
108
 
 *   // Result of latest write_some_at operation.
109
 
 *   const asio::error_code& error,
110
 
 *
111
 
 *   // Number of bytes transferred so far.
112
 
 *   std::size_t bytes_transferred
113
 
 * ); @endcode
114
 
 * A return value of true indicates that the write operation is complete. False
115
 
 * indicates that further calls to the device's write_some_at function are
116
 
 * required.
117
 
 *
118
 
 * @returns The number of bytes transferred.
119
 
 *
120
 
 * @throws asio::system_error Thrown on failure.
121
 
 *
122
 
 * @par Example
123
 
 * To write a single data buffer use the @ref buffer function as follows:
124
 
 * @code asio::write_at(d, 42, asio::buffer(data, size),
125
 
 *     asio::transfer_at_least(32)); @endcode
126
 
 * See the @ref buffer documentation for information on writing multiple
127
 
 * buffers in one go, and how to use it with arrays, boost::array or
128
 
 * std::vector.
129
 
 */
130
 
template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence,
131
 
    typename CompletionCondition>
132
 
std::size_t write_at(SyncRandomAccessWriteDevice& d,
133
 
    boost::uint64_t offset, const ConstBufferSequence& buffers,
134
 
    CompletionCondition completion_condition);
135
 
 
136
 
/// Write a certain amount of data at a specified offset before returning.
137
 
/**
138
 
 * This function is used to write a certain number of bytes of data to a random
139
 
 * access device at a specified offset. The call will block until one of the
140
 
 * following conditions is true:
141
 
 *
142
 
 * @li All of the data in the supplied buffers has been written. That is, the
143
 
 * bytes transferred is equal to the sum of the buffer sizes.
144
 
 *
145
 
 * @li The completion_condition function object returns true.
146
 
 *
147
 
 * This operation is implemented in terms of one or more calls to the device's
148
 
 * write_some_at function.
149
 
 *
150
 
 * @param d The device to which the data is to be written. The type must support
151
 
 * the SyncRandomAccessWriteDevice concept.
152
 
 *
153
 
 * @param offset The offset at which the data will be written.
154
 
 *
155
 
 * @param buffers One or more buffers containing the data to be written. The sum
156
 
 * of the buffer sizes indicates the maximum number of bytes to write to the
157
 
 * device.
158
 
 *
159
 
 * @param completion_condition The function object to be called to determine
160
 
 * whether the write operation is complete. The signature of the function object
161
 
 * must be:
162
 
 * @code bool completion_condition(
163
 
 *   // Result of latest write_some_at operation.
164
 
 *   const asio::error_code& error,
165
 
 *
166
 
 *   // Number of bytes transferred so far.
167
 
 *   std::size_t bytes_transferred
168
 
 * ); @endcode
169
 
 * A return value of true indicates that the write operation is complete. False
170
 
 * indicates that further calls to the device's write_some_at function are
171
 
 * required.
172
 
 *
173
 
 * @param ec Set to indicate what error occurred, if any.
174
 
 *
175
 
 * @returns The number of bytes written. If an error occurs, returns the total
176
 
 * number of bytes successfully transferred prior to the error.
177
 
 */
178
 
template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence,
179
 
    typename CompletionCondition>
180
 
std::size_t write_at(SyncRandomAccessWriteDevice& d,
181
 
    boost::uint64_t offset, const ConstBufferSequence& buffers,
182
 
    CompletionCondition completion_condition, asio::error_code& ec);
183
 
 
184
 
/// Write all of the supplied data at the specified offset before returning.
185
 
/**
186
 
 * This function is used to write a certain number of bytes of data to a random
187
 
 * access device at a specified offset. The call will block until one of the
188
 
 * following conditions is true:
189
 
 *
190
 
 * @li All of the data in the supplied basic_streambuf has been written.
191
 
 *
192
 
 * @li An error occurred.
193
 
 *
194
 
 * This operation is implemented in terms of one or more calls to the device's
195
 
 * write_some_at function.
196
 
 *
197
 
 * @param d The device to which the data is to be written. The type must support
198
 
 * the SyncRandomAccessWriteDevice concept.
199
 
 *
200
 
 * @param offset The offset at which the data will be written.
201
 
 *
202
 
 * @param b The basic_streambuf object from which data will be written.
203
 
 *
204
 
 * @returns The number of bytes transferred.
205
 
 *
206
 
 * @throws asio::system_error Thrown on failure.
207
 
 *
208
 
 * @note This overload is equivalent to calling:
209
 
 * @code asio::write_at(
210
 
 *     d, 42, b,
211
 
 *     asio::transfer_all()); @endcode
212
 
 */
213
 
template <typename SyncRandomAccessWriteDevice, typename Allocator>
214
 
std::size_t write_at(SyncRandomAccessWriteDevice& d,
215
 
    boost::uint64_t offset, basic_streambuf<Allocator>& b);
216
 
 
217
 
/// Write a certain amount of data at a specified offset before returning.
218
 
/**
219
 
 * This function is used to write a certain number of bytes of data to a random
220
 
 * access device at a specified offset. The call will block until one of the
221
 
 * following conditions is true:
222
 
 *
223
 
 * @li All of the data in the supplied basic_streambuf has been written.
224
 
 *
225
 
 * @li The completion_condition function object returns true.
226
 
 *
227
 
 * This operation is implemented in terms of one or more calls to the device's
228
 
 * write_some_at function.
229
 
 *
230
 
 * @param d The device to which the data is to be written. The type must support
231
 
 * the SyncRandomAccessWriteDevice concept.
232
 
 *
233
 
 * @param offset The offset at which the data will be written.
234
 
 *
235
 
 * @param b The basic_streambuf object from which data will be written.
236
 
 *
237
 
 * @param completion_condition The function object to be called to determine
238
 
 * whether the write operation is complete. The signature of the function object
239
 
 * must be:
240
 
 * @code bool completion_condition(
241
 
 *   // Result of latest write_some_at operation.
242
 
 *   const asio::error_code& error,
243
 
 *
244
 
 *   // Number of bytes transferred so far.
245
 
 *   std::size_t bytes_transferred
246
 
 * ); @endcode
247
 
 * A return value of true indicates that the write operation is complete. False
248
 
 * indicates that further calls to the device's write_some_at function are
249
 
 * required.
250
 
 *
251
 
 * @returns The number of bytes transferred.
252
 
 *
253
 
 * @throws asio::system_error Thrown on failure.
254
 
 */
255
 
template <typename SyncRandomAccessWriteDevice, typename Allocator,
256
 
    typename CompletionCondition>
257
 
std::size_t write_at(SyncRandomAccessWriteDevice& d, boost::uint64_t offset,
258
 
    basic_streambuf<Allocator>& b, CompletionCondition completion_condition);
259
 
 
260
 
/// Write a certain amount of data at a specified offset before returning.
261
 
/**
262
 
 * This function is used to write a certain number of bytes of data to a random
263
 
 * access device at a specified offset. The call will block until one of the
264
 
 * following conditions is true:
265
 
 *
266
 
 * @li All of the data in the supplied basic_streambuf has been written.
267
 
 *
268
 
 * @li The completion_condition function object returns true.
269
 
 *
270
 
 * This operation is implemented in terms of one or more calls to the device's
271
 
 * write_some_at function.
272
 
 *
273
 
 * @param d The device to which the data is to be written. The type must support
274
 
 * the SyncRandomAccessWriteDevice concept.
275
 
 *
276
 
 * @param offset The offset at which the data will be written.
277
 
 *
278
 
 * @param b The basic_streambuf object from which data will be written.
279
 
 *
280
 
 * @param completion_condition The function object to be called to determine
281
 
 * whether the write operation is complete. The signature of the function object
282
 
 * must be:
283
 
 * @code bool completion_condition(
284
 
 *   // Result of latest write_some_at operation.
285
 
 *   const asio::error_code& error,
286
 
 *
287
 
 *   // Number of bytes transferred so far.
288
 
 *   std::size_t bytes_transferred
289
 
 * ); @endcode
290
 
 * A return value of true indicates that the write operation is complete. False
291
 
 * indicates that further calls to the device's write_some_at function are
292
 
 * required.
293
 
 *
294
 
 * @param ec Set to indicate what error occurred, if any.
295
 
 *
296
 
 * @returns The number of bytes written. If an error occurs, returns the total
297
 
 * number of bytes successfully transferred prior to the error.
298
 
 */
299
 
template <typename SyncRandomAccessWriteDevice, typename Allocator,
300
 
    typename CompletionCondition>
301
 
std::size_t write_at(SyncRandomAccessWriteDevice& d, boost::uint64_t offset,
302
 
    basic_streambuf<Allocator>& b, CompletionCondition completion_condition,
303
 
    asio::error_code& ec);
304
 
 
305
 
/*@}*/
306
 
/**
307
 
 * @defgroup async_write_at asio::async_write_at
308
 
 *
309
 
 * @brief Start an asynchronous operation to write a certain amount of data at
310
 
 * the specified offset.
311
 
 */
312
 
/*@{*/
313
 
 
314
 
/// Start an asynchronous operation to write all of the supplied data at the
315
 
/// specified offset.
316
 
/**
317
 
 * This function is used to asynchronously write a certain number of bytes of
318
 
 * data to a random access device at a specified offset. The function call
319
 
 * always returns immediately. The asynchronous operation will continue until
320
 
 * one of the following conditions is true:
321
 
 *
322
 
 * @li All of the data in the supplied buffers has been written. That is, the
323
 
 * bytes transferred is equal to the sum of the buffer sizes.
324
 
 *
325
 
 * @li An error occurred.
326
 
 *
327
 
 * This operation is implemented in terms of one or more calls to the device's
328
 
 * async_write_some_at function.
329
 
 *
330
 
 * @param d The device to which the data is to be written. The type must support
331
 
 * the AsyncRandomAccessWriteDevice concept.
332
 
 *
333
 
 * @param offset The offset at which the data will be written.
334
 
 *
335
 
 * @param buffers One or more buffers containing the data to be written.
336
 
 * Although the buffers object may be copied as necessary, ownership of the
337
 
 * underlying memory blocks is retained by the caller, which must guarantee
338
 
 * that they remain valid until the handler is called.
339
 
 *
340
 
 * @param handler The handler to be called when the write operation completes.
341
 
 * Copies will be made of the handler as required. The function signature of
342
 
 * the handler must be:
343
 
 * @code void handler(
344
 
 *   // Result of operation.
345
 
 *   const asio::error_code& error,
346
 
 *
347
 
 *   // Number of bytes written from the buffers. If an error
348
 
 *   // occurred, this will be less than the sum of the buffer sizes.
349
 
 *   std::size_t bytes_transferred
350
 
 * ); @endcode
351
 
 * Regardless of whether the asynchronous operation completes immediately or
352
 
 * not, the handler will not be invoked from within this function. Invocation of
353
 
 * the handler will be performed in a manner equivalent to using
354
 
 * asio::io_service::post().
355
 
 *
356
 
 * @par Example
357
 
 * To write a single data buffer use the @ref buffer function as follows:
358
 
 * @code
359
 
 * asio::async_write_at(d, 42, asio::buffer(data, size), handler);
360
 
 * @endcode
361
 
 * See the @ref buffer documentation for information on writing multiple
362
 
 * buffers in one go, and how to use it with arrays, boost::array or
363
 
 * std::vector.
364
 
 */
365
 
template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence,
366
 
    typename WriteHandler>
367
 
void async_write_at(AsyncRandomAccessWriteDevice& d, boost::uint64_t offset,
368
 
    const ConstBufferSequence& buffers, WriteHandler handler);
369
 
 
370
 
/// Start an asynchronous operation to write a certain amount of data at the
371
 
/// specified offset.
372
 
/**
373
 
 * This function is used to asynchronously write a certain number of bytes of
374
 
 * data to a random access device at a specified offset. The function call
375
 
 * always returns immediately. The asynchronous operation will continue until
376
 
 * one of the following conditions is true:
377
 
 *
378
 
 * @li All of the data in the supplied buffers has been written. That is, the
379
 
 * bytes transferred is equal to the sum of the buffer sizes.
380
 
 *
381
 
 * @li The completion_condition function object returns true.
382
 
 *
383
 
 * This operation is implemented in terms of one or more calls to the device's
384
 
 * async_write_some_at function.
385
 
 *
386
 
 * @param d The device to which the data is to be written. The type must support
387
 
 * the AsyncRandomAccessWriteDevice concept.
388
 
 *
389
 
 * @param offset The offset at which the data will be written.
390
 
 *
391
 
 * @param buffers One or more buffers containing the data to be written.
392
 
 * Although the buffers object may be copied as necessary, ownership of the
393
 
 * underlying memory blocks is retained by the caller, which must guarantee
394
 
 * that they remain valid until the handler is called.
395
 
 *
396
 
 * @param completion_condition The function object to be called to determine
397
 
 * whether the write operation is complete. The signature of the function object
398
 
 * must be:
399
 
 * @code bool completion_condition(
400
 
 *   // Result of latest write_some_at operation.
401
 
 *   const asio::error_code& error,
402
 
 *
403
 
 *   // Number of bytes transferred so far.
404
 
 *   std::size_t bytes_transferred
405
 
 * ); @endcode
406
 
 * A return value of true indicates that the write operation is complete. False
407
 
 * indicates that further calls to the device's async_write_some_at function are
408
 
 * required.
409
 
 *
410
 
 * @param handler The handler to be called when the write operation completes.
411
 
 * Copies will be made of the handler as required. The function signature of the
412
 
 * handler must be:
413
 
 * @code void handler(
414
 
 *   // Result of operation.
415
 
 *   const asio::error_code& error,
416
 
 *
417
 
 *   // Number of bytes written from the buffers. If an error
418
 
 *   // occurred, this will be less than the sum of the buffer sizes.
419
 
 *   std::size_t bytes_transferred
420
 
 * ); @endcode
421
 
 * Regardless of whether the asynchronous operation completes immediately or
422
 
 * not, the handler will not be invoked from within this function. Invocation of
423
 
 * the handler will be performed in a manner equivalent to using
424
 
 * asio::io_service::post().
425
 
 *
426
 
 * @par Example
427
 
 * To write a single data buffer use the @ref buffer function as follows:
428
 
 * @code asio::async_write_at(d, 42,
429
 
 *     asio::buffer(data, size),
430
 
 *     asio::transfer_at_least(32),
431
 
 *     handler); @endcode
432
 
 * See the @ref buffer documentation for information on writing multiple
433
 
 * buffers in one go, and how to use it with arrays, boost::array or
434
 
 * std::vector.
435
 
 */
436
 
template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence,
437
 
    typename CompletionCondition, typename WriteHandler>
438
 
void async_write_at(AsyncRandomAccessWriteDevice& d,
439
 
    boost::uint64_t offset, const ConstBufferSequence& buffers,
440
 
    CompletionCondition completion_condition, WriteHandler handler);
441
 
 
442
 
/// Start an asynchronous operation to write all of the supplied data at the
443
 
/// specified offset.
444
 
/**
445
 
 * This function is used to asynchronously write a certain number of bytes of
446
 
 * data to a random access device at a specified offset. The function call
447
 
 * always returns immediately. The asynchronous operation will continue until
448
 
 * one of the following conditions is true:
449
 
 *
450
 
 * @li All of the data in the supplied basic_streambuf has been written.
451
 
 *
452
 
 * @li An error occurred.
453
 
 *
454
 
 * This operation is implemented in terms of one or more calls to the device's
455
 
 * async_write_some_at function.
456
 
 *
457
 
 * @param d The device to which the data is to be written. The type must support
458
 
 * the AsyncRandomAccessWriteDevice concept.
459
 
 *
460
 
 * @param offset The offset at which the data will be written.
461
 
 *
462
 
 * @param b A basic_streambuf object from which data will be written. Ownership
463
 
 * of the streambuf is retained by the caller, which must guarantee that it
464
 
 * remains valid until the handler is called.
465
 
 *
466
 
 * @param handler The handler to be called when the write operation completes.
467
 
 * Copies will be made of the handler as required. The function signature of the
468
 
 * handler must be:
469
 
 * @code void handler(
470
 
 *   // Result of operation.
471
 
 *   const asio::error_code& error,
472
 
 *
473
 
 *   // Number of bytes written from the buffers. If an error
474
 
 *   // occurred, this will be less than the sum of the buffer sizes.
475
 
 *   std::size_t bytes_transferred
476
 
 * ); @endcode
477
 
 * Regardless of whether the asynchronous operation completes immediately or
478
 
 * not, the handler will not be invoked from within this function. Invocation of
479
 
 * the handler will be performed in a manner equivalent to using
480
 
 * asio::io_service::post().
481
 
 */
482
 
template <typename AsyncRandomAccessWriteDevice, typename Allocator,
483
 
    typename WriteHandler>
484
 
void async_write_at(AsyncRandomAccessWriteDevice& d, boost::uint64_t offset,
485
 
    basic_streambuf<Allocator>& b, WriteHandler handler);
486
 
 
487
 
/// Start an asynchronous operation to write a certain amount of data at the
488
 
/// specified offset.
489
 
/**
490
 
 * This function is used to asynchronously write a certain number of bytes of
491
 
 * data to a random access device at a specified offset. The function call
492
 
 * always returns immediately. The asynchronous operation will continue until
493
 
 * one of the following conditions is true:
494
 
 *
495
 
 * @li All of the data in the supplied basic_streambuf has been written.
496
 
 *
497
 
 * @li The completion_condition function object returns true.
498
 
 *
499
 
 * This operation is implemented in terms of one or more calls to the device's
500
 
 * async_write_some_at function.
501
 
 *
502
 
 * @param d The device to which the data is to be written. The type must support
503
 
 * the AsyncRandomAccessWriteDevice concept.
504
 
 *
505
 
 * @param offset The offset at which the data will be written.
506
 
 *
507
 
 * @param b A basic_streambuf object from which data will be written. Ownership
508
 
 * of the streambuf is retained by the caller, which must guarantee that it
509
 
 * remains valid until the handler is called.
510
 
 *
511
 
 * @param completion_condition The function object to be called to determine
512
 
 * whether the write operation is complete. The signature of the function object
513
 
 * must be:
514
 
 * @code bool completion_condition(
515
 
 *   // Result of latest async_write_some_at operation.
516
 
 *   const asio::error_code& error,
517
 
 *
518
 
 *   // Number of bytes transferred so far.
519
 
 *   std::size_t bytes_transferred
520
 
 * ); @endcode
521
 
 * A return value of true indicates that the write operation is complete. False
522
 
 * indicates that further calls to the device's async_write_some_at function are
523
 
 * required.
524
 
 *
525
 
 * @param handler The handler to be called when the write operation completes.
526
 
 * Copies will be made of the handler as required. The function signature of the
527
 
 * handler must be:
528
 
 * @code void handler(
529
 
 *   // Result of operation.
530
 
 *   const asio::error_code& error,
531
 
 *
532
 
 *   // Number of bytes written from the buffers. If an error
533
 
 *   // occurred, this will be less than the sum of the buffer sizes.
534
 
 *   std::size_t bytes_transferred
535
 
 * ); @endcode
536
 
 * Regardless of whether the asynchronous operation completes immediately or
537
 
 * not, the handler will not be invoked from within this function. Invocation of
538
 
 * the handler will be performed in a manner equivalent to using
539
 
 * asio::io_service::post().
540
 
 */
541
 
template <typename AsyncRandomAccessWriteDevice, typename Allocator,
542
 
    typename CompletionCondition, typename WriteHandler>
543
 
void async_write_at(AsyncRandomAccessWriteDevice& d, boost::uint64_t offset,
544
 
    basic_streambuf<Allocator>& b, CompletionCondition completion_condition,
545
 
    WriteHandler handler);
546
 
 
547
 
/*@}*/
548
 
 
549
 
} // namespace asio
550
 
 
551
 
#include "asio/impl/write_at.ipp"
552
 
 
553
 
#include "asio/detail/pop_options.hpp"
554
 
 
555
 
#endif // ASIO_WRITE_AT_HPP