Dev Essential
Loading...
Searching...
No Matches
a_util::system::AddressInfo Class Reference

#include <address_info.h>

Public Member Functions

template<typename ReturnType, typename... Args>
 AddressInfo (ReturnType(*const function)(Args...)) noexcept
 
template<typename T>
 AddressInfo (const T &variable) noexcept
 
filesystem::Path getFilePath () const
 

Detailed Description

Address info class This class can be used to query information about a memory address (e.g. the file path of the binary where the address is located in)

Constructor & Destructor Documentation

◆ AddressInfo() [1/2]

template<typename ReturnType, typename... Args>
a_util::system::AddressInfo::AddressInfo ( ReturnType(* function )(Args...))
inlineexplicitnoexcept

Constructor for function addresses

◆ AddressInfo() [2/2]

template<typename T>
a_util::system::AddressInfo::AddressInfo ( const T & variable)
inlineexplicitnoexcept

Constructor for global or static variables addresses

Warning
variable must not be a heap or stack variable!

Member Function Documentation

◆ getFilePath()

filesystem::Path a_util::system::AddressInfo::getFilePath ( ) const

Get the fully qualified file path to the executable or shared library the address is located in.

Returns
File path of the binary the address is located in (e.g. "C:\dir\test.exe", "C:\dir\test.dll", "netdrive\test.exe" or "\\netdrive\test.so"). Might be empty if an error occurs.

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