microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | List of all members
microfmt::remote_unique_ptr_view< T, RemotePtr > Class Template Reference

Formattable view over a unique pointer stored in a remote process. More...

#include <remote_smart_ptr.hpp>

Public Member Functions

constexpr remote_unique_ptr_view (uintptr_t ptr_addr, address_space_ref space, span< std::byte > scratch RELOCO_LIFETIMEBOUND, ptrdiff_t ptr_offset=0) noexcept
 Constructs a view over a remote unique-pointer object.
 
bool format (const sink &out) const noexcept
 Loads and renders the pointee or nullptr.
 

Detailed Description

template<typename T, typename RemotePtr = uintptr_t>
class microfmt::remote_unique_ptr_view< T, RemotePtr >

Formattable view over a unique pointer stored in a remote process.

Template Parameters
TPointee type.
RemotePtrPointer representation in the target process.

Constructor & Destructor Documentation

◆ remote_unique_ptr_view()

template<typename T , typename RemotePtr = uintptr_t>
constexpr microfmt::remote_unique_ptr_view< T, RemotePtr >::remote_unique_ptr_view ( uintptr_t  ptr_addr,
address_space_ref  space,
span< std::byte > scratch  RELOCO_LIFETIMEBOUND,
ptrdiff_t  ptr_offset = 0 
)
inlineconstexprnoexcept

Constructs a view over a remote unique-pointer object.

Parameters
ptr_addrAddress of the remote pointer object.
spaceAddress space containing the pointer and pointee.
scratchStorage used to load the pointee.
ptr_offsetOffset from ptr_addr to the stored pointer.

Member Function Documentation

◆ format()

template<typename T , typename RemotePtr = uintptr_t>
bool microfmt::remote_unique_ptr_view< T, RemotePtr >::format ( const sink &  out) const
inlinenoexcept

Loads and renders the pointee or nullptr.

Parameters
outDestination sink.
Returns
true on success; false when a required remote read fails.

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