microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Attributes | List of all members
microfmt::sink_provider_ref::vtable Struct Reference

Virtual table of sink operations. More...

#include <sink_provider.hpp>

Public Attributes

void(* write )(void *ctx, microfmt::string_view sv) noexcept = nullptr
 Writes a character slice. See sink_provider_ref::write.
 
void(* flush )(void *ctx) noexcept = nullptr
 Flushes buffered output. nullptr for backends whose traits omit flush. See sink_provider_ref::flush.
 

Detailed Description

Virtual table of sink operations.

Member Data Documentation

◆ flush

void(* microfmt::sink_provider_ref::vtable::flush) (void *ctx) noexcept = nullptr
noexcept

Flushes buffered output. nullptr for backends whose traits omit flush. See sink_provider_ref::flush.

◆ write

void(* microfmt::sink_provider_ref::vtable::write) (void *ctx, microfmt::string_view sv) noexcept = nullptr
noexcept

Writes a character slice. See sink_provider_ref::write.

Shares its signature with microfmt::sink::write_fn_t by design, so as_sink can hand this function pointer straight to a sink with no adapter.


The documentation for this struct was generated from the following file: