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

Function readU16

Il2cppHook/_Ufunc.js:8937–8948  ·  view source on GitHub ↗
(mPtr)

Source from the content-addressed store, hash-verified

8935const readUInt64 = (value) => alloc(2).writePointer(value).readU64();
8936exports.readUInt64 = readUInt64;
8937const readU16 = (mPtr) => {
8938 if (typeof mPtr == "number")
8939 mPtr = ptr(mPtr);
8940 if (mPtr == undefined || mPtr == ptr(0))
8941 return "";
8942 try {
8943 return mPtr.add(p_size * 2 + 4).readUtf16String();
8944 }
8945 catch {
8946 return "";
8947 }
8948};
8949exports.readU16 = readU16;
8950const showArray = (mPtr, funcTransform) => {
8951 if (typeof mPtr == "number")

Callers 15

dataPathMethod · 0.70
streamingAssetsPathMethod · 0.70
persistentDataPathMethod · 0.70
temporaryCachePathMethod · 0.70
unityVersionMethod · 0.70
versionMethod · 0.70
identifierMethod · 0.70
productNameMethod · 0.70
companyNameMethod · 0.70
cloudProjectIdMethod · 0.70
HookDebugLogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected