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

Derived symbol info with precomputed relative offsets. More...

#include <symbol_resolver.hpp>

Collaboration diagram for microfmt::resolved_symbol_info:
Collaboration graph
[legend]

Public Member Functions

constexpr bool has_symbol () const noexcept
 Reports whether a symbol name is available.
 
constexpr bool has_image () const noexcept
 Reports whether an owning image is known.
 

Public Attributes

microfmt::string_view symbol_name {""}
 Nearest symbol name (may be empty when stripped).
 
uintptr_t symbol_base {0}
 Base address of the matched symbol.
 
uintptr_t offset_from_symbol {0}
 Offset of the address from symbol_base.
 
bool is_exact {false}
 true when the match is exact (not merely nearest).
 
microfmt::string_view image_name {""}
 Owning image/module name.
 
uintptr_t image_load_base {0}
 Load base of the owning image.
 
uintptr_t offset_from_image {0}
 Offset of the address from image_load_base.
 

Detailed Description

Derived symbol info with precomputed relative offsets.

Member Function Documentation

◆ has_image()

constexpr bool microfmt::resolved_symbol_info::has_image ( ) const
inlineconstexprnoexcept

Reports whether an owning image is known.

Returns
true when image_name is non-empty.

◆ has_symbol()

constexpr bool microfmt::resolved_symbol_info::has_symbol ( ) const
inlineconstexprnoexcept

Reports whether a symbol name is available.

Returns
true when symbol_name is non-empty.

Member Data Documentation

◆ image_load_base

uintptr_t microfmt::resolved_symbol_info::image_load_base {0}

Load base of the owning image.

◆ image_name

microfmt::string_view microfmt::resolved_symbol_info::image_name {""}

Owning image/module name.

◆ is_exact

bool microfmt::resolved_symbol_info::is_exact {false}

true when the match is exact (not merely nearest).

◆ offset_from_image

uintptr_t microfmt::resolved_symbol_info::offset_from_image {0}

Offset of the address from image_load_base.

◆ offset_from_symbol

uintptr_t microfmt::resolved_symbol_info::offset_from_symbol {0}

Offset of the address from symbol_base.

◆ symbol_base

uintptr_t microfmt::resolved_symbol_info::symbol_base {0}

Base address of the matched symbol.

◆ symbol_name

microfmt::string_view microfmt::resolved_symbol_info::symbol_name {""}

Nearest symbol name (may be empty when stripped).


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