|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Functions | |
| template<typename Stream , std::size_t StackSize = 256, typename... Args> | |
| boost::asio::awaitable< std::size_t > | async_format_to (Stream &stream, string_view fmt, Args &&...args) |
| Formats a message directly into a stack buffer and asynchronously writes it to a Boost.Asio stream. | |
| boost::asio::awaitable< std::size_t > microfmt::coro::async_format_to | ( | Stream & | stream, |
| string_view | fmt, | ||
| Args &&... | args | ||
| ) |
Formats a message directly into a stack buffer and asynchronously writes it to a Boost.Asio stream.
| Stream | Async stream type (e.g., boost::asio::ip::tcp::socket, boost::asio::serial_port). |
| StackSize | Size of the local stack buffer used for formatting. |
| Args | Formatting argument types. |
| stream | Target asynchronous stream. Must remain valid until the returned awaitable completes; the coroutine holds a reference to it across suspension points. |
| fmt | Format string view. |
| args | Arguments to format. |
boost::asio::awaitable<std::size_t> resolving to the number of bytes written upon completion.