少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#pragma once
 
#include <stdint.h>
#include <string>
#include <vector>
#include "il2cpp-config.h"
 
struct Il2CppClass;
struct MethodInfo;
struct Il2CppAssembly;
struct Il2CppDelegate;
struct Il2CppImage;
struct Il2CppType;
struct Il2CppGenericContext;
struct Il2CppGenericContainer;
struct Il2CppReflectionAssembly;
struct Il2CppArray;
class AssemblyVector;
 
namespace il2cpp
{
namespace vm
{
    typedef std::vector<const Il2CppClass*> TypeVector;
 
    class TypeNameParseInfo;
 
    struct EmbeddedResourceRecord
    {
        EmbeddedResourceRecord(const Il2CppImage* image, const std::string& name, uint32_t offset, uint32_t size)
            : image(image), name(name), offset(offset), size(size)
        {}
 
        const Il2CppImage* image;
        std::string name;
        uint32_t offset;
        uint32_t size;
    };
 
    class LIBIL2CPP_CODEGEN_API Image
    {
// exported
    public:
        static Il2CppImage* GetCorlib();
 
    public:
        static const char * GetName(const Il2CppImage* image);
        static const char * GetFileName(const Il2CppImage* image);
        static const Il2CppAssembly* GetAssembly(const Il2CppImage* image);
        static const MethodInfo* GetEntryPoint(const Il2CppImage* image);
        static const Il2CppImage* GetExecutingImage();
        static const Il2CppImage* GetCallingImage();
        static size_t GetNumTypes(const Il2CppImage* image);
        static const Il2CppClass* GetType(const Il2CppImage* image, size_t index);
        static Il2CppClass* FromTypeNameParseInfo(const Il2CppImage* image, const TypeNameParseInfo &info, bool ignoreCase);
        static Il2CppClass* ClassFromName(const Il2CppImage* image, const char* namespaze, const char *name);
        static Il2CppMetadataTypeHandle TypeHandleFromName(const Il2CppImage* image, const char* namespaze, const char* name);
        static void GetTypes(const Il2CppImage* image, bool exportedOnly, TypeVector* target);
 
        struct EmbeddedResourceData
        {
            EmbeddedResourceData(EmbeddedResourceRecord record, void* data)
                : record(record), data(data)
            {}
 
            EmbeddedResourceRecord record;
            void* data;
        };
 
        static void CacheMemoryMappedResourceFile(Il2CppReflectionAssembly* assembly, void* memoryMappedFile);
        static void* GetCachedMemoryMappedResourceFile(Il2CppReflectionAssembly* assembly);
        static void CacheResourceData(EmbeddedResourceRecord record, void* data);
        static void* GetCachedResourceData(const Il2CppImage* image, const std::string& name);
        static void ClearCachedResourceData();
        static void InitNestedTypes(const Il2CppImage *image);
    };
} /* namespace vm */
} /* namespace il2cpp */