| Home | Libraries | People | FAQ | More

### write

Write a certain amount of data to a stream before returning.

    template<
        typename SyncWriteStream,
        typename ConstBufferSequence>
    std::size_t write(
        SyncWriteStream & s,
        const ConstBufferSequence & buffers);

    template<
        typename SyncWriteStream,
        typename ConstBufferSequence,
        typename CompletionCondition>
    std::size_t write(
        SyncWriteStream & s,
        const ConstBufferSequence & buffers,
        CompletionCondition completion_condition);

    template<
        typename SyncWriteStream,
        typename ConstBufferSequence,
        typename CompletionCondition>
    std::size_t write(
        SyncWriteStream & s,
        const ConstBufferSequence & buffers,
        CompletionCondition completion_condition,
        boost::system::error_code & ec);

    template<
        typename SyncWriteStream,
        typename Allocator>
    std::size_t write(
        SyncWriteStream & s,
        basic_streambuf< Allocator > & b);

    template<
        typename SyncWriteStream,
        typename Allocator,
        typename CompletionCondition>
    std::size_t write(
        SyncWriteStream & s,
        basic_streambuf< Allocator > & b,
        CompletionCondition completion_condition);

    template<
        typename SyncWriteStream,
        typename Allocator,
        typename CompletionCondition>
    std::size_t write(
        SyncWriteStream & s,
        basic_streambuf< Allocator > & b,
        CompletionCondition completion_condition,
        boost::system::error_code & ec);