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

Function allocStrInner

Il2cppHook/_Ufunc.js:8133–8133  ·  view source on GitHub ↗
(str, type = enum_1.TYPE_STR.C_STR)

Source from the content-addressed store, hash-verified

8131exports.allocVector = exports.allocUStr = exports.allocCStr = exports.alloc = void 0;
8132const enum_1 = require("../base/enum");
8133const allocStrInner = (str, type = enum_1.TYPE_STR.C_STR) => type == enum_1.TYPE_STR.C_STR ? Memory.allocUtf8String(str) : Il2Cpp.Api._stringNew(Memory.allocUtf8String(str));
8134const allocCStr = (str) => allocStrInner(str, enum_1.TYPE_STR.C_STR);
8135exports.allocCStr = allocCStr;
8136const allocUStr = (str) => allocStrInner(str, enum_1.TYPE_STR.U_STR);

Callers 2

allocCStrFunction · 0.70
allocUStrFunction · 0.70

Calls 1

_stringNewMethod · 0.80

Tested by

no test coverage detected