MCPcopy Create free account
hub / github.com/axhlzy/FridaDebugger / createIl2CppObject

Function createIl2CppObject

agent/il2cpp-symbols.ts:152–164  ·  view source on GitHub ↗
(value: NativePointer)

Source from the content-addressed store, hash-verified

150}
151
152export function createIl2CppObject(value: NativePointer): Il2Cpp.Object | null {
153 if (!isUnityIl2CppProcess() || !isObjectCandidate(value) || !ensureAttached()) {
154 return null;
155 }
156
157 try {
158 const object = new Il2Cpp.Object(value);
159 void object.class;
160 return object;
161 } catch (_error) {
162 return null;
163 }
164}
165
166export function rememberIl2CppClass(klass: Il2Cpp.Class): void {
167 knownClassHandles.add(klass.handle.toString());

Callers 2

resolveIl2CppObjectFunction · 0.85
logIl2CppFieldsFunction · 0.85

Calls 3

isUnityIl2CppProcessFunction · 0.85
isObjectCandidateFunction · 0.85
ensureAttachedFunction · 0.85

Tested by

no test coverage detected