boost::capy::pull_from

pull_from overloads

Synopses

Transfer data from a ReadSource to a BufferSink.

template<
    ReadSource Src,
    BufferSink Sink>
io_task<std::size_t>
pull_from(
    Src& source,
    Sink& sink);

Transfer data from a ReadStream to a BufferSink.

template<
    ReadStream Src,
    BufferSink Sink>
requires (!ReadSource<Src>)
io_task<std::size_t>
pull_from(
    Src& source,
    Sink& sink);

Return Value

A task that yields (std::error_code, std::size_t). On success, ec is default‐constructed (no error) and n is the total number of bytes transferred. On error, ec contains the error code and n is the total number of bytes transferred before the error.

Template Parameters

Name Description

Src

The source type, must satisfy ReadSource.

Sink

The sink type, must satisfy BufferSink.

Parameters

Name Description

source

The source to read data from.

sink

The sink to write data to.

See Also

ReadSource, BufferSink, push_to

ReadStream, BufferSink, push_to

Created with MrDocs