File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 88
99import Foundation
1010
11+ #if canImport(Combine)
12+ import Combine
13+ #endif // #if canImport(Combine)
14+
1115// MARK: - CBORDecoder Definition
1216
1317/// An object that decodes instances of a data type from CBOR objects.
@@ -1058,3 +1062,9 @@ extension DecodingError {
10581062 return . typeMismatch( expectation, Context ( codingPath: path, debugDescription: description) )
10591063 }
10601064}
1065+
1066+ // MARK: - CBORDecoder Extension
1067+
1068+ #if canImport(Combine)
1069+ extension CBORDecoder : TopLevelDecoder { }
1070+ #endif // #if canImport(Combine)
Original file line number Diff line number Diff line change 88
99import Foundation
1010
11+ #if canImport(Combine)
12+ import Combine
13+ #endif // #if canImport(Combine)
14+
1115// MARK: - CBOREncoder Definition
1216
1317/// An object that encodes instances of a data type as CBOR objects.
@@ -1119,3 +1123,9 @@ private class __CBORReferencingEncoder: __CBOREncoder {
11191123 return storage. count == codingPath. count - encoder. codingPath. count - 1
11201124 }
11211125}
1126+
1127+ // MARK: - CBOREncoder Extension
1128+
1129+ #if canImport(Combine)
1130+ extension CBOREncoder : TopLevelEncoder { }
1131+ #endif // #if canImport(Combine)
You can’t perform that action at this time.
0 commit comments