Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-06-18 07:22:21


Author: chris_kohlhoff
Date: 2008-06-18 07:22:21 EDT (Wed, 18 Jun 2008)
New Revision: 46473
URL: http://svn.boost.org/trac/boost/changeset/46473

Log:
Fix write_at declaration. Add missing documentation for offset parameters.

Text files modified:
   trunk/boost/asio/write_at.hpp | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: trunk/boost/asio/write_at.hpp
==============================================================================
--- trunk/boost/asio/write_at.hpp (original)
+++ trunk/boost/asio/write_at.hpp 2008-06-18 07:22:21 EDT (Wed, 18 Jun 2008)
@@ -176,7 +176,7 @@
  */
 template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence,
     typename CompletionCondition>
-std::size_t write(SyncRandomAccessWriteDevice& d,
+std::size_t write_at(SyncRandomAccessWriteDevice& d,
     boost::uint64_t offset, const ConstBufferSequence& buffers,
     CompletionCondition completion_condition, boost::system::error_code& ec);
 
@@ -382,6 +382,8 @@
  * @param d The device to which the data is to be written. The type must support
  * the AsyncRandomAccessWriteDevice concept.
  *
+ * @param offset The offset at which the data will be written.
+ *
  * @param buffers One or more buffers containing the data to be written.
  * Although the buffers object may be copied as necessary, ownership of the
  * underlying memory blocks is retained by the caller, which must guarantee
@@ -451,6 +453,8 @@
  * @param d The device to which the data is to be written. The type must support
  * the AsyncRandomAccessWriteDevice concept.
  *
+ * @param offset The offset at which the data will be written.
+ *
  * @param b A basic_streambuf object from which data will be written. Ownership
  * of the streambuf is retained by the caller, which must guarantee that it
  * remains valid until the handler is called.
@@ -494,6 +498,8 @@
  * @param d The device to which the data is to be written. The type must support
  * the AsyncRandomAccessWriteDevice concept.
  *
+ * @param offset The offset at which the data will be written.
+ *
  * @param b A basic_streambuf object from which data will be written. Ownership
  * of the streambuf is retained by the caller, which must guarantee that it
  * remains valid until the handler is called.


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk