File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -3563,6 +3563,23 @@ final internal class _SwiftDeferredNS${Self}<${TypeParametersDecl}>
3563
3563
) {
3564
3564
bridgedAllKeysAndValues(objects, keys)
3565
3565
}
3566
+
3567
+ @objc(enumerateKeysAndObjectsWithOptions:usingBlock:)
3568
+ internal func enumerateKeysAndObjects(options: Int,
3569
+ using block: @convention(block) (Unmanaged<AnyObject>, Unmanaged<AnyObject>,
3570
+ UnsafeMutablePointer<UInt8>) -> Void) {
3571
+ bridgeEverything()
3572
+ let capacity = nativeBuffer.capacity
3573
+ var stop: UInt8 = 0
3574
+ for position in 0..<capacity {
3575
+ if bridgedBuffer.isInitializedEntry(at: position) {
3576
+ block(Unmanaged.passUnretained(bridgedBuffer.key(at: position)),
3577
+ Unmanaged.passUnretained(bridgedBuffer.value(at: position)),
3578
+ &stop)
3579
+ }
3580
+ if stop != 0 { return }
3581
+ }
3582
+ }
3566
3583
%end
3567
3584
3568
3585
/// Returns the pointer to the stored property, which contains bridged
You can’t perform that action at this time.
0 commit comments