Skip to main content

Module cache

Module cache 

Source
Expand description

Global cache for hydrated IL2CPP metadata.

The cache is populated during crate::init and is the normal starting point for metadata-driven workflows. Most users should use the helper functions in this module rather than traversing IL2CPP metadata manually.

Structs§

Il2CppCache
Caches IL2CPP assemblies, classes, and methods

Statics§

CACHE
Global cache instance

Functions§

assembly
Retrieves an assembly by name.
class_from_ptr
Hydrates a Class from a raw Il2CppClass pointer.
coremodule
Returns the cached UnityEngine.CoreModule.dll assembly.
csharp
Returns the cached Assembly-CSharp.dll assembly.
init
Initializes the cache by loading all assemblies and resetting prior state.
method_from_ptr
Creates a Method struct from a raw pointer
mscorlib
Returns the cached mscorlib.dll assembly.