1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>write_at</title> 5<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../boost_asio.html" title="Boost.Asio"> 8<link rel="up" href="../reference.html" title="Reference"> 9<link rel="prev" href="write/overload16.html" title="write (16 of 16 overloads)"> 10<link rel="next" href="write_at/overload1.html" title="write_at (1 of 8 overloads)"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> 15<td align="center"><a href="../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="write/overload16.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="write_at/overload1.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h3 class="title"> 27<a name="boost_asio.reference.write_at"></a><a class="link" href="write_at.html" title="write_at">write_at</a> 28</h3></div></div></div> 29<p> 30 <a class="indexterm" name="boost_asio.indexterm.write_at"></a> 31The <code class="computeroutput">write_at</code> function is 32 a composed operation that writes a certain amount of data at a specified 33 offset before returning. 34 </p> 35<p> 36 Write all of the supplied data at the specified offset before returning. 37 </p> 38<pre class="programlisting">template< 39 typename <a class="link" href="SyncRandomAccessWriteDevice.html" title="Buffer-oriented synchronous random-access write device requirements">SyncRandomAccessWriteDevice</a>, 40 typename <a class="link" href="ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a>> 41std::size_t <a class="link" href="write_at/overload1.html" title="write_at (1 of 8 overloads)">write_at</a>( 42 SyncRandomAccessWriteDevice & d, 43 uint64_t offset, 44 const ConstBufferSequence & buffers); 45 <span class="emphasis"><em>» <a class="link" href="write_at/overload1.html" title="write_at (1 of 8 overloads)">more...</a></em></span> 46 47template< 48 typename <a class="link" href="SyncRandomAccessWriteDevice.html" title="Buffer-oriented synchronous random-access write device requirements">SyncRandomAccessWriteDevice</a>, 49 typename <a class="link" href="ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a>> 50std::size_t <a class="link" href="write_at/overload2.html" title="write_at (2 of 8 overloads)">write_at</a>( 51 SyncRandomAccessWriteDevice & d, 52 uint64_t offset, 53 const ConstBufferSequence & buffers, 54 boost::system::error_code & ec); 55 <span class="emphasis"><em>» <a class="link" href="write_at/overload2.html" title="write_at (2 of 8 overloads)">more...</a></em></span> 56</pre> 57<p> 58 Write a certain amount of data at a specified offset before returning. 59 </p> 60<pre class="programlisting">template< 61 typename <a class="link" href="SyncRandomAccessWriteDevice.html" title="Buffer-oriented synchronous random-access write device requirements">SyncRandomAccessWriteDevice</a>, 62 typename <a class="link" href="ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a>, 63 typename <a class="link" href="CompletionCondition.html" title="Completion condition requirements">CompletionCondition</a>> 64std::size_t <a class="link" href="write_at/overload3.html" title="write_at (3 of 8 overloads)">write_at</a>( 65 SyncRandomAccessWriteDevice & d, 66 uint64_t offset, 67 const ConstBufferSequence & buffers, 68 CompletionCondition completion_condition); 69 <span class="emphasis"><em>» <a class="link" href="write_at/overload3.html" title="write_at (3 of 8 overloads)">more...</a></em></span> 70 71template< 72 typename <a class="link" href="SyncRandomAccessWriteDevice.html" title="Buffer-oriented synchronous random-access write device requirements">SyncRandomAccessWriteDevice</a>, 73 typename <a class="link" href="ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a>, 74 typename <a class="link" href="CompletionCondition.html" title="Completion condition requirements">CompletionCondition</a>> 75std::size_t <a class="link" href="write_at/overload4.html" title="write_at (4 of 8 overloads)">write_at</a>( 76 SyncRandomAccessWriteDevice & d, 77 uint64_t offset, 78 const ConstBufferSequence & buffers, 79 CompletionCondition completion_condition, 80 boost::system::error_code & ec); 81 <span class="emphasis"><em>» <a class="link" href="write_at/overload4.html" title="write_at (4 of 8 overloads)">more...</a></em></span> 82</pre> 83<p> 84 Write all of the supplied data at the specified offset before returning. 85 </p> 86<pre class="programlisting">template< 87 typename <a class="link" href="SyncRandomAccessWriteDevice.html" title="Buffer-oriented synchronous random-access write device requirements">SyncRandomAccessWriteDevice</a>, 88 typename Allocator> 89std::size_t <a class="link" href="write_at/overload5.html" title="write_at (5 of 8 overloads)">write_at</a>( 90 SyncRandomAccessWriteDevice & d, 91 uint64_t offset, 92 basic_streambuf< Allocator > & b); 93 <span class="emphasis"><em>» <a class="link" href="write_at/overload5.html" title="write_at (5 of 8 overloads)">more...</a></em></span> 94 95template< 96 typename <a class="link" href="SyncRandomAccessWriteDevice.html" title="Buffer-oriented synchronous random-access write device requirements">SyncRandomAccessWriteDevice</a>, 97 typename Allocator> 98std::size_t <a class="link" href="write_at/overload6.html" title="write_at (6 of 8 overloads)">write_at</a>( 99 SyncRandomAccessWriteDevice & d, 100 uint64_t offset, 101 basic_streambuf< Allocator > & b, 102 boost::system::error_code & ec); 103 <span class="emphasis"><em>» <a class="link" href="write_at/overload6.html" title="write_at (6 of 8 overloads)">more...</a></em></span> 104</pre> 105<p> 106 Write a certain amount of data at a specified offset before returning. 107 </p> 108<pre class="programlisting">template< 109 typename <a class="link" href="SyncRandomAccessWriteDevice.html" title="Buffer-oriented synchronous random-access write device requirements">SyncRandomAccessWriteDevice</a>, 110 typename Allocator, 111 typename <a class="link" href="CompletionCondition.html" title="Completion condition requirements">CompletionCondition</a>> 112std::size_t <a class="link" href="write_at/overload7.html" title="write_at (7 of 8 overloads)">write_at</a>( 113 SyncRandomAccessWriteDevice & d, 114 uint64_t offset, 115 basic_streambuf< Allocator > & b, 116 CompletionCondition completion_condition); 117 <span class="emphasis"><em>» <a class="link" href="write_at/overload7.html" title="write_at (7 of 8 overloads)">more...</a></em></span> 118 119template< 120 typename <a class="link" href="SyncRandomAccessWriteDevice.html" title="Buffer-oriented synchronous random-access write device requirements">SyncRandomAccessWriteDevice</a>, 121 typename Allocator, 122 typename <a class="link" href="CompletionCondition.html" title="Completion condition requirements">CompletionCondition</a>> 123std::size_t <a class="link" href="write_at/overload8.html" title="write_at (8 of 8 overloads)">write_at</a>( 124 SyncRandomAccessWriteDevice & d, 125 uint64_t offset, 126 basic_streambuf< Allocator > & b, 127 CompletionCondition completion_condition, 128 boost::system::error_code & ec); 129 <span class="emphasis"><em>» <a class="link" href="write_at/overload8.html" title="write_at (8 of 8 overloads)">more...</a></em></span> 130</pre> 131<h5> 132<a name="boost_asio.reference.write_at.h0"></a> 133 <span class="phrase"><a name="boost_asio.reference.write_at.requirements"></a></span><a class="link" href="write_at.html#boost_asio.reference.write_at.requirements">Requirements</a> 134 </h5> 135<p> 136 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/write_at.hpp</code> 137 </p> 138<p> 139 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code> 140 </p> 141</div> 142<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 143<td align="left"></td> 144<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 145 Kohlhoff<p> 146 Distributed under the Boost Software License, Version 1.0. (See accompanying 147 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 148 </p> 149</div></td> 150</tr></table> 151<hr> 152<div class="spirit-nav"> 153<a accesskey="p" href="write/overload16.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="write_at/overload1.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 154</div> 155</body> 156</html> 157