PStack
2.0
Stack trace printer for MSVC and GCC binaries
|
Common base class for all specializations of loaded_function. More...
Public Member Functions | |
loaded_function_base (FARPROC proc) | |
Construct a loaded_function from a function pointer. More... | |
void | retarget (FARPROC proc) noexcept |
Re-assign a function pointer to this functor instance. More... | |
T * | get_ptr () const noexcept |
Access the function pointer contained here directly. More... | |
Protected Attributes | |
T * | m_function |
The function pointer that may be invoked. | |
Common base class for all specializations of loaded_function.
T | The function signature that will be used to store the wrapped function. |
|
inline |
Construct a loaded_function from a function pointer.
[in] | proc | The proceedure's address. Type safety is out the window; we must trust you. This may be nullptr . |
|
inlinenoexcept |
Access the function pointer contained here directly.
nullptr
.
|
inlinenoexcept |
Re-assign a function pointer to this functor instance.
Not all users of loaded_function will know the memory address at construction time (think "lazy" initialization). This method allows them to assign the pointer at a later time.
[in] | proc | The proceedure's address. Type safety is out the window; we must trust you. This may be nullptr . |