Files
RedHotRoast-ios/HybridCLRData/StrippedAOTDllsTempProj/iOS/Il2CppOutputProject/IL2CPP/libil2cpp/vm/MetadataAlloc.h
T

22 lines
633 B
C++
Raw Normal View History

2026-07-17 14:03:00 +08:00
#pragma once
#include "il2cpp-config.h"
struct Il2CppGenericClass;
struct Il2CppGenericMethod;
namespace il2cpp
{
namespace vm
{
void MetadataAllocInitialize();
void MetadataAllocCleanup();
// These allocators assume the g_MetadataLock lock is held
void* MetadataMalloc(size_t size);
void* MetadataCalloc(size_t count, size_t size);
// These metadata structures have their own locks, since they do lightweight initialization
Il2CppGenericClass* MetadataAllocGenericClass();
Il2CppGenericMethod* MetadataAllocGenericMethod();
bool MetadataContains(const void* data);
} // namespace vm
} // namespace il2cpp