forked from focus-creative-games/il2cpp_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrayMetadata.h
More file actions
25 lines (21 loc) · 812 Bytes
/
ArrayMetadata.h
File metadata and controls
25 lines (21 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include <stdint.h>
#include "os/Mutex.h"
struct Il2CppClass;
namespace il2cpp
{
namespace metadata
{
class ArrayMetadata
{
public:
static Il2CppClass* GetBoundedArrayClass(Il2CppClass* elementClass, uint32_t rank, bool bounded);
typedef void(*ArrayTypeWalkCallback)(Il2CppClass* type, void* context);
static void WalkSZArrays(ArrayTypeWalkCallback callback, void* context);
static void WalkArrays(ArrayTypeWalkCallback callback, void* context);
// called as part of Class::Init with lock held
static void SetupArrayInterfaces(Il2CppClass* klass, const il2cpp::os::FastAutoLock& lock);
static void SetupArrayVTable(Il2CppClass* klass, const il2cpp::os::FastAutoLock& lock);
};
} /* namespace vm */
} /* namespace il2cpp */