* Wraps any writer of type @c nlohmann::detail::output_adapter_t into a Flusher * * @param w The writer to wrap. */
| 297 | * @param w The writer to wrap. |
| 298 | */ |
| 299 | JsonEncoder::Flusher::Flusher(const nlohmann::detail::output_adapter_t<char>& w) |
| 300 | : m_AsyncWriter(dynamic_cast<AsyncJsonWriter*>(w.get())) |
| 301 | { |
| 302 | } |
| 303 | |
| 304 | /** |
| 305 | * Flushes the underlying writer if it supports that operation and is safe to do so. |