|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Formattable view over a shared pointer and its remote control block. More...
#include <remote_smart_ptr.hpp>
Public Member Functions | |
| constexpr | remote_shared_ptr_view (uintptr_t shared_ptr_addr, address_space_ref space, span< std::byte > scratch RELOCO_LIFETIMEBOUND, ptrdiff_t ptr_offset, ptrdiff_t control_block_offset, ptrdiff_t use_count_offset, ptrdiff_t weak_count_offset) noexcept |
| Constructs a view over a remote shared-pointer object. | |
| bool | format (const sink &out) const noexcept |
| Loads and renders the pointee and reference counts. | |
Formattable view over a shared pointer and its remote control block.
| 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 shared-pointer object.
| shared_ptr_addr | Address of the remote shared-pointer object. |
| space | Address space containing the pointer, pointee, and control block. |
| scratch | Storage used to load the pointee. |
| ptr_offset | Offset to the stored pointee pointer. |
| control_block_offset | Offset to the control-block pointer. |
| use_count_offset | Offset in the control block to the strong count. |
| weak_count_offset | Offset in the control block to the weak count. |
|
inlinenoexcept |
Loads and renders the pointee and reference counts.
| out | Destination sink. |
true on success; false when required pointer reads fail.