MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Flusher

Method Flusher

lib/base/json.cpp:299–302  ·  view source on GitHub ↗

* Wraps any writer of type @c nlohmann::detail::output_adapter_t into a Flusher * * @param w The writer to wrap. */

Source from the content-addressed store, hash-verified

297 * @param w The writer to wrap.
298 */
299JsonEncoder::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.

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected