@internal
(holder, nativeFunction, Class)
| 13144 | const console_1 = require("./console"); |
| 13145 | /** @internal */ |
| 13146 | function* 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 | } |
| 13153 | exports.nativeIterator = nativeIterator; |
| 13154 | /** @internal */ |
| 13155 | function cacheInstances(Class) { |