|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Formattable view over an intrusive pointer with an embedded count. More...
#include <remote_smart_ptr.hpp>
Public Member Functions | |
| constexpr | remote_intrusive_ptr_view (uintptr_t intrusive_ptr_addr, address_space_ref space, span< std::byte > scratch RELOCO_LIFETIMEBOUND, ptrdiff_t ptr_offset, ptrdiff_t ref_count_offset) noexcept |
| Constructs a view over a remote intrusive-pointer object. | |
| bool | format (const sink &out) const noexcept |
| Loads and renders the pointee and its embedded reference count. | |
Formattable view over an intrusive pointer with an embedded count.
| T | Pointee type. |
| RemotePtr | Pointer representation in the target process. |
| RemoteRefCount | Reference-count representation in the target process. |
|
inlineconstexprnoexcept |
Constructs a view over a remote intrusive-pointer object.
| intrusive_ptr_addr | Address of the remote pointer object. |
| space | Address space containing the pointer and pointee. |
| scratch | Storage used to load the pointee. |
| ptr_offset | Offset to the stored pointee pointer. |
| ref_count_offset | Offset in the pointee to its reference count. |
|
inlinenoexcept |
Loads and renders the pointee and its embedded reference count.
| out | Destination sink. |
true on success; false when the pointer read fails.