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

Method fieldValue

Il2cppHook/_Ufunc.js:2159–2164  ·  view source on GitHub ↗
(fieldName)

Source from the content-addressed store, hash-verified

2157 return this.mClass.field(fieldName);
2158 }
2159 fieldValue(fieldName) {
2160 let field = this.fieldInstance(fieldName);
2161 if (field.isStatic)
2162 return this.fakeStaticField(field).readPointer();
2163 return this.mPtr.add(this.fieldOffset(fieldName)).readPointer();
2164 }
2165 fieldOffset(fieldName) {
2166 return this.fieldInstance(fieldName).offset;
2167 }

Callers 1

_Ufunc.jsFile · 0.45

Calls 3

fieldInstanceMethod · 0.95
fakeStaticFieldMethod · 0.95
fieldOffsetMethod · 0.95

Tested by

no test coverage detected