microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
microfmt::formatter< remote_fn_ptr > Struct Reference

Formatter for remote_fn_ptr. More...

#include <remote_diagnostics.hpp>

Public Member Functions

constexpr void parse (format_parse_context &ctx) noexcept
 Parses the leading mode character.
 
void format (const remote_fn_ptr &fn, const sink &out) const noexcept
 Renders the remote code pointer.
 

Public Attributes

char mode {'\0'}
 Output mode selected by the first specifier character.
 

Detailed Description

Formatter for remote_fn_ptr.

Modes: x/p force raw hex output; # requests verbose image!symbol+off output; the default resolves and demangles the symbol.

Member Function Documentation

◆ format()

void microfmt::formatter< remote_fn_ptr >::format ( const remote_fn_ptr &  fn,
const sink &  out 
) const
inlinenoexcept

Renders the remote code pointer.

Parameters
fnThe code pointer view to format.
outDestination sink.

◆ parse()

constexpr void microfmt::formatter< remote_fn_ptr >::parse ( format_parse_context &  ctx)
inlineconstexprnoexcept

Parses the leading mode character.

Parameters
ctxFormat parse context exposing the specifier text.

Member Data Documentation

◆ mode

char microfmt::formatter< remote_fn_ptr >::mode {'\0'}

Output mode selected by the first specifier character.


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