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

Function nativeIterator

Il2cppHook/_Ufunc.js:13146–13152  ·  view source on GitHub ↗

@internal

(holder, nativeFunction, Class)

Source from the content-addressed store, hash-verified

13144const console_1 = require("./console");
13145/** @internal */
13146function* nativeIterator(holder, nativeFunction, Class) {
13147 const iterator = Memory.alloc(Process.pointerSize);
13148 let handle;
13149 while (!(handle = nativeFunction(holder, iterator)).isNull()) {
13150 yield new Class(handle);
13151 }
13152}
13153exports.nativeIterator = nativeIterator;
13154/** @internal */
13155function cacheInstances(Class) {

Callers

nothing calls this directly

Calls 2

isNullMethod · 0.80
allocMethod · 0.45

Tested by

no test coverage detected