microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
microfmt::semihosting_sink Class Reference

ARM Semihosting Sink for AArch64 freestanding environments. More...

#include <semihosting.hpp>

Public Member Functions

constexpr semihosting_sink () noexcept=default
 
constexpr sink as_sink () const noexcept
 Adapts this semihosting sink into a type-erased microfmt::sink.
 

Static Public Member Functions

static void write (void *, microfmt::string_view sv) noexcept
 Writes a raw character buffer to the host via semihosting SYS_WRITE (0x05).
 

Detailed Description

ARM Semihosting Sink for AArch64 freestanding environments.

Routes formatted diagnostics directly to the host system via the hlt #0xf000 semihosting trap instruction.

Constructor & Destructor Documentation

◆ semihosting_sink()

constexpr microfmt::semihosting_sink::semihosting_sink ( )
constexprdefaultnoexcept

Member Function Documentation

◆ as_sink()

constexpr sink microfmt::semihosting_sink::as_sink ( ) const
inlineconstexprnoexcept

Adapts this semihosting sink into a type-erased microfmt::sink.

Returns
A lightweight microfmt::sink ready for format_to.

◆ write()

static void microfmt::semihosting_sink::write ( void *  ,
microfmt::string_view  sv 
)
inlinestaticnoexcept

Writes a raw character buffer to the host via semihosting SYS_WRITE (0x05).

Parameters
dataPointer to the character buffer.
lenNumber of bytes to write.

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