Elfspy/MethodInfo.h
2016-09-16 17:45:35 +02:00

27 lines
430 B
C++

#ifndef ELFSPY_METHODINFO_H
#define ELFSPY_METHODINFO_H
namespace spy
{
/**
* @class MethodInfo
* contains the resolved function address of a method and the address of it's
* vtable entry if the method is virtual
*/
template <typename ReturnType, typename... ArgTypes>
struct MethodInfo
{
union
{
ReturnType (*function_)(ArgTypes...);
void* address_;
};
void** vtable_entry_;
};
} // namespace spy
#endif