|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Lazily-loaded remote object reference with diagnostics support. More...
#include <remote_diagnostics.hpp>
Public Member Functions | |
| constexpr | remote_diag_ref (uintptr_t addr, address_space_ref space, symbol_resolver_ref resolver, span< std::byte > scratch RELOCO_LIFETIMEBOUND, symbol_resolution_context &symbol_context RELOCO_LIFETIMEBOUND) noexcept |
| Constructs a diagnostics-aware remote object reference. | |
| constexpr uintptr_t | address () const noexcept |
| Returns the remote object address. | |
| constexpr bool | is_null () const noexcept |
| Reports whether the reference points to address zero. | |
| expected< T *, remote_load_error > | load () const noexcept RELOCO_LIFETIMEBOUND |
| Loads the object into the scratch buffer. | |
| constexpr address_space_ref | space () const noexcept |
| Returns the address space handle. | |
| constexpr symbol_resolver_ref | resolver () const noexcept |
| Returns the symbol resolver handle. | |
| constexpr symbol_resolution_context & | symbol_context () const noexcept RELOCO_LIFETIMEBOUND |
Lazily-loaded remote object reference with diagnostics support.
| T | Referenced remote object type. |
|
inlineconstexprnoexcept |
Constructs a diagnostics-aware remote object reference.
| addr | Absolute address of the object. |
| space | Address space the object lives in. |
| resolver | Symbol resolver used on read faults. |
| scratch | Reusable, aligned object scratch buffer. |
| symbol_context | Caller-owned symbol-resolution temporaries. |
|
inlineconstexprnoexcept |
Returns the remote object address.
0 when null.
|
inlineconstexprnoexcept |
Reports whether the reference points to address zero.
true when the reference is null.
|
inlinenoexcept |
Loads the object into the scratch buffer.
|
inlineconstexprnoexcept |
Returns the symbol resolver handle.
|
inlineconstexprnoexcept |
Returns the address space handle.
|
inlineconstexprnoexcept |