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 8
8
9
9
import Foundation
10
10
11
+ #if canImport(Combine)
12
+ import Combine
13
+ #endif // #if canImport(Combine)
14
+
11
15
// MARK: - CBORDecoder Definition
12
16
13
17
/// An object that decodes instances of a data type from CBOR objects.
@@ -1058,3 +1062,9 @@ extension DecodingError {
1058
1062
return . typeMismatch( expectation, Context ( codingPath: path, debugDescription: description) )
1059
1063
}
1060
1064
}
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 8
8
9
9
import Foundation
10
10
11
+ #if canImport(Combine)
12
+ import Combine
13
+ #endif // #if canImport(Combine)
14
+
11
15
// MARK: - CBOREncoder Definition
12
16
13
17
/// An object that encodes instances of a data type as CBOR objects.
@@ -1119,3 +1123,9 @@ private class __CBORReferencingEncoder: __CBOREncoder {
1119
1123
return storage. count == codingPath. count - encoder. codingPath. count - 1
1120
1124
}
1121
1125
}
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