MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / getFileLenth

Function getFileLenth

Il2cppHook/_Ufunc.js:1429–1437  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

1427 LOG("");
1428};
1429const getFileLenth = (filePath) => {
1430 let file = callFunctionWithOutError(Module.findExportByName("libc.so", "fopen"), allocCStr(filePath), allocCStr("rwx"));
1431 if (file.isNull())
1432 return 0;
1433 callFunctionWithOutError(Module.findExportByName("libc.so", "fseek"), file, 0, 2);
1434 let len = callFunctionRI(Module.findExportByName("libc.so", "ftell"), file);
1435 callFunctionWithOutError(Module.findExportByName("libc.so", "fclose"), file);
1436 return len;
1437};
1438globalThis.StalkerTraceEvent = (mPtr, range) => {
1439 let src_mPtr = mPtr;
1440 mPtr = checkPointer(mPtr);

Callers 1

printModuleFunction · 0.70

Calls 4

isNullMethod · 0.80
callFunctionWithOutErrorFunction · 0.70
allocCStrFunction · 0.70
callFunctionRIFunction · 0.70

Tested by

no test coverage detected