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

Function getArrayElementPointer

agent/unity-fields.ts:267–273  ·  view source on GitHub ↗
(array: Il2Cpp.Array, index: number)

Source from the content-addressed store, hash-verified

265}
266
267function getArrayElementPointer(array: Il2Cpp.Array, index: number): NativePointer {
268 try {
269 return (array as ArrayWithElements).elements.handle.add(index * array.elementSize);
270 } catch (_error) {
271 return array.handle.add(Il2Cpp.Array.headerSize).add(index * Process.pointerSize);
272 }
273}
274
275function getArrayDisplayIndices(length: number): number[] {
276 if (length <= MAX_ARRAY_ELEMENTS) {

Callers 1

logArrayElementFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected