|
microfmt
Zero-allocation C++ formatting for constrained environments
|
A sink adapter that writes formatted output into a boost::asio::streambuf dynamic buffer.
More...
#include <asio_sink.hpp>
Public Member Functions | |
| asio_streambuf_sink (boost::asio::streambuf &buf RELOCO_LIFETIMEBOUND RELOCO_LIFETIME_CAPTURE_BY_THIS, size_t max_chars=1024) noexcept | |
| Constructs a sink over an externally owned Boost.Asio streambuf. | |
| sink | as_sink () noexcept RELOCO_LIFETIMEBOUND |
| Creates a type-erased sink adapter pointing to this instance. | |
A sink adapter that writes formatted output into a boost::asio::streambuf dynamic buffer.
|
inlineexplicitnoexcept |
Constructs a sink over an externally owned Boost.Asio streambuf.
| buf | Target streambuf; it must outlive this sink. |
| max_chars | Maximum number of characters accepted before further writes are silently dropped. |
|
inlinenoexcept |
Creates a type-erased sink adapter pointing to this instance.