|
co_usb
|
Interface complying with Boost.Http's ReadSource and WriteSink concepts. More...
#include <complete_io.hpp>

Public Member Functions | |
| direction_complete_io_base (boost::capy::executor_ref exec, TSeq const &tfer_seq, size_t single_transfer_limit, std::pmr::memory_resource *memres=std::pmr::get_default_resource()) | |
| template<boost::capy::MutableBufferSequence BuffersTy> requires (EpDirection == endpoint_direction::in) | |
| auto | read_some (BuffersTy const &buffers) -> boost::capy::io_task< size_t > |
| Performs partial read to a buffer sequence. | |
| template<boost::capy::MutableBufferSequence BuffersTy> requires (EpDirection == endpoint_direction::in) | |
| auto | read (BuffersTy const &buffers) -> boost::capy::io_task< size_t > |
| Performs complete read to a buffer sequence. | |
| template<boost::capy::ConstBufferSequence BuffersTy> requires (EpDirection == endpoint_direction::out) | |
| auto | write_some (BuffersTy const &buffers) -> boost::capy::io_task< size_t > |
| template<boost::capy::ConstBufferSequence BuffersTy> requires (EpDirection == endpoint_direction::out) | |
| auto | write (BuffersTy const &buffers) -> boost::capy::io_task< size_t > |
| Performs complete write from a buffer sequence. | |
| template<boost::capy::ConstBufferSequence BuffersTy> requires (EpDirection == endpoint_direction::out) | |
| auto | write_eof (BuffersTy const &buffers) -> boost::capy::io_task< size_t > |
| Performs complete write from a buffer sequence. | |
| template<boost::capy::ConstBufferSequence BuffersTy> requires (EpDirection == endpoint_direction::out) | |
| auto | write_eof () -> boost::capy::io_task<> |
| Indicates EOF and closes the sink. | |
Interface complying with Boost.Http's ReadSource and WriteSink concepts.
ReadSource and WriteSink concepts were once defined in Capy. Since then they had been moved to Boost.Http because they were only used in it and the libraries based on it. This interface will be kept regardless to increase interoperability.
|
inlineexplicit |
|
inline |
Performs complete read to a buffer sequence.
Will attempt to completely fill the given buffer sequence. Reading less is always coupled with an error.
|
inline |
Performs partial read to a buffer sequence.
May read less than the buffer size.
|
inline |
Performs complete write from a buffer sequence.
Will attempt to write all data from the given buffer sequence. Writing less is always coupled with an error.
|
inline |
Indicates EOF and closes the sink.
|
inline |
Performs complete write from a buffer sequence.
Will attempt to write all data from the given buffer sequence. Writing less is always coupled with an error.
|
inline |