Skip to content

Namespace endstone::detail

Namespace List > endstone > detail

Public Attributes

Type Name
Return(*)(Arg...) fp_cast
Gets the original member function pointer from a detour member function pointer (const, no ref-qualifier)

Public Functions

Type Name
void * fp_cast (Return(*)(Args...) fp)
Cast a function pointer to void pointer.
void * fp_cast (Return(Class::*)(Args...) fp)
Cast a member function pointer to void pointer.
Server & getServer ()

Public Attributes Documentation

variable fp_cast

Gets the original member function pointer from a detour member function pointer (const, no ref-qualifier)

Return(Class::*)(Arg...) endstone::detail::fp_cast(Return(Class::*fp)(Arg...) const, void *address);


Public Functions Documentation

function fp_cast

Cast a function pointer to void pointer.

template<typename Return, typename... Args>
void * endstone::detail::fp_cast (
    Return (*)(Args...) fp
) 

Template parameters:

  • Return The return type of the function.
  • Args The argument types of the function.

Parameters:

  • fp The function pointer to be casted.

Returns:

A void pointer to the function.


function fp_cast

Cast a member function pointer to void pointer.

template<typename Return, typename Class, typename... Args>
void * endstone::detail::fp_cast (
    Return (Class::*)(Args...) fp
) 

Cast a constant member function pointer to void pointer.

Template parameters:

  • Return The return type of the member function.
  • Class The class type that the member function belongs to.
  • Args The argument types of the member function.

Parameters:

  • fp Pointer to the member function to be casted.

Returns:

A void pointer to the member function.

Template parameters:

  • Return The return type of the constant member function.
  • Class The class type that the constant member function belongs to.
  • Args The argument types of the constant member function.

Parameters:

  • fp Pointer to the constant member function to be casted.

Returns:

A void pointer to the constant member function.


function getServer

inline Server & endstone::detail::getServer () 

Gets the current Server singleton

Returns:

Server instance being run



The documentation for this class was generated from the following file include/endstone/detail.h