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

Method id

Il2cppHook/_Ufunc.js:12323–12325  ·  view source on GitHub ↗

Gets the native id of the current thread.

()

Source from the content-addressed store, hash-verified

12321 }
12322 /** Gets the native id of the current thread. */
12323 get id() {
12324 return ptr(this.internal.field("thread_id").value.toString()).add(Il2Cpp.Thread.idOffset).readS32();
12325 }
12326 /** @internal Gets the encompassing internal object (System.Threding.InternalThreead) of the current thread. */
12327 get internal() {
12328 const internalThread = this.object.tryField("internal_thread")?.value;

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.65
fieldMethod · 0.45

Tested by

no test coverage detected