Boost C++ 库

...世界上最受推崇和设计最精湛的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ 编码标准

PrevUpHomeNext

async_write_at

async_write_at 函数是一个组合的异步操作,在完成之前,在指定的偏移量处写入一定量的数据。

启动一个异步操作,在指定的偏移量处写入所有提供的数据。

template<
    typename AsyncRandomAccessWriteDevice,
    typename ConstBufferSequence,
    typename WriteToken = default_completion_token_t<        typename AsyncRandomAccessWriteDevice::executor_type>>
DEDUCED async_write_at(
    AsyncRandomAccessWriteDevice & d,
    uint64_t offset,
    const ConstBufferSequence & buffers,
    WriteToken && token = default_completion_token_t< typename AsyncRandomAccessWriteDevice::executor_type >(),
    constraint_t< !is_completion_condition< WriteToken >::value >  = 0);
  » more...

启动一个异步操作,在指定的偏移量处写入一定量的数据。

template<
    typename AsyncRandomAccessWriteDevice,
    typename ConstBufferSequence,
    typename CompletionCondition,
    typename WriteToken = default_completion_token_t<        typename AsyncRandomAccessWriteDevice::executor_type>>
DEDUCED async_write_at(
    AsyncRandomAccessWriteDevice & d,
    uint64_t offset,
    const ConstBufferSequence & buffers,
    CompletionCondition completion_condition,
    WriteToken && token = default_completion_token_t< typename AsyncRandomAccessWriteDevice::executor_type >(),
    constraint_t< is_completion_condition< CompletionCondition >::value >  = 0);
  » more...

启动一个异步操作,在指定的偏移量处写入所有提供的数据。

template<
    typename AsyncRandomAccessWriteDevice,
    typename Allocator,
    typename WriteToken = default_completion_token_t<        typename AsyncRandomAccessWriteDevice::executor_type>>
DEDUCED async_write_at(
    AsyncRandomAccessWriteDevice & d,
    uint64_t offset,
    basic_streambuf< Allocator > & b,
    WriteToken && token = default_completion_token_t< typename AsyncRandomAccessWriteDevice::executor_type >(),
    constraint_t< !is_completion_condition< WriteToken >::value >  = 0);
  » more...

启动一个异步操作,在指定的偏移量处写入一定量的数据。

template<
    typename AsyncRandomAccessWriteDevice,
    typename Allocator,
    typename CompletionCondition,
    typename WriteToken = default_completion_token_t<        typename AsyncRandomAccessWriteDevice::executor_type>>
DEDUCED async_write_at(
    AsyncRandomAccessWriteDevice & d,
    uint64_t offset,
    basic_streambuf< Allocator > & b,
    CompletionCondition completion_condition,
    WriteToken && token = default_completion_token_t< typename AsyncRandomAccessWriteDevice::executor_type >(),
    constraint_t< is_completion_condition< CompletionCondition >::value >  = 0);
  » more...
要求

头文件: boost/asio/write_at.hpp

便捷头文件: boost/asio.hpp


PrevUpHomeNext