Skip to content

functionInfo.h

mhahnFr edited this page Jun 27, 2025 · 1 revision

This header contains the API for querying information about currently loaded functions.

struct functionInfo

Structures the gathered information about a specific function.

Note

Added in version 2.1.

uintptr_t begin

The start address of the function. It can be invoked.

size_t length

The length of the symbol. May include padding bytes.

bool found

Indicates whether the function was actually found.

struct functionInfo functionInfo_loadHint(const char* functionName, const char* libraryName)

Attempts to load the information for the function with the given name.

The runtime image of the given name is searched for the function. If the function is not found in it all loaded runtime images are searched. If no runtime image of the given name is loaded all runtime images are searched.

The function name should be as used by the linker on the host system, e.g. no name mangling is applied.

Note

Added in version 2.1.

struct functionInfo functionInfo_load(const char* functionName)

Attempts to load the information for the function with the given name.

All loaded runtime images are searched for the function.

The function name should be as used by the linker on the host system, e.g. no name mangling is applied.

Note

Added in version 2.1.

Clone this wiki locally