LearnWithTouch/App/LearnWithTouch_ios/Libraries/libil2cpp/include/os/LibraryLoader.h

26 lines
998 B
C
Raw Normal View History

2019-07-01 14:33:21 +02:00
#pragma once
#include "il2cpp-config.h"
#include "utils/StringView.h"
#include <string>
struct PInvokeArguments;
namespace il2cpp
{
namespace os
{
class LibraryLoader
{
public:
static Il2CppMethodPointer GetHardcodedPInvokeDependencyFunctionPointer(const il2cpp::utils::StringView<Il2CppNativeChar>& nativeDynamicLibrary, const il2cpp::utils::StringView<char>& entryPoint);
static void* LoadDynamicLibrary(const utils::StringView<Il2CppNativeChar>& nativeDynamicLibrary);
static void* LoadDynamicLibrary(const utils::StringView<Il2CppNativeChar>& nativeDynamicLibrary, int flags);
static Il2CppMethodPointer GetFunctionPointer(void* dynamicLibrary, const PInvokeArguments& pinvokeArgs);
static Il2CppMethodPointer GetFunctionPointer(void* dynamicLibrary, const char* functionName);
static void CleanupLoadedLibraries();
static bool CloseLoadedLibrary(void*& dynamicLibrary);
};
} /* namespace os */
} /* namespace il2cpp*/