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

Function getArrayDisplayIndices

agent/unity-fields.ts:275–284  ·  view source on GitHub ↗
(length: number)

Source from the content-addressed store, hash-verified

273}
274
275function getArrayDisplayIndices(length: number): number[] {
276 if (length <= MAX_ARRAY_ELEMENTS) {
277 return Array.from({ length }, (_value, index) => index);
278 }
279
280 const head = Array.from({ length: ARRAY_HEAD_ELEMENTS }, (_value, index) => index);
281 const tailStart = length - ARRAY_TAIL_ELEMENTS;
282 const tail = Array.from({ length: ARRAY_TAIL_ELEMENTS }, (_value, index) => tailStart + index);
283 return [...head, -1, ...tail];
284}
285
286function formatArraySummary(array: Il2Cpp.Array): string {
287 try {

Callers 1

logArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected