Skip to content

helper for single-buffer algorithms #59

@vinniefalco

Description

@vinniefalco

The API of the ReadSource concept in buffers/read_source.hpp has a read function template which accepts any mutable buffer sequence. We should offer a helper free function that models of ReadSource can use to invoke a lambda accepting a buffers::mutable_buffer and system::error_code& and returning the number of bytes read , where the lambda is invoked repeatedly and the helper integrates the results, with special care to handle error::eof. The implementation of any_read_source here https://github.com/cppalliance/buffers/blob/develop/include/boost/buffers/any_buffers.hpp can be used for guidance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions