tangled
alpha
login
or
join now
khanwinter.com
/
CBOR
A fast, safe, and efficient CBOR serialization library for Swift on any platform.
swiftpackageindex.com/thecoolwinter/CBOR/1.1.1/documentation/cbor
atproto
swift
cbor
2
fork
atom
overview
issues
pulls
pipelines
Fix Build For iOS, tvOS, watchOS, visionOS
Khan Winter
3 months ago
34843286
fc4dc25e
+4
-4
2 changed files
expand all
collapse all
unified
split
Sources
CBOR
Decoder
Containers
SingleValueCBORDecodingContainer.swift
Encoder
Containers
SingleValueCBOREncodingContainer.swift
+2
-2
Sources/CBOR/Decoder/Containers/SingleValueCBORDecodingContainer.swift
···
103
103
return value
104
104
}
105
105
106
106
-
@available(macOS 15.0, *)
106
106
+
@available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *)
107
107
func decode(_ type: Int128.Type) throws -> Int128 {
108
108
try checkType(.uint, .nint, forType: Int128.self)
109
109
let value = try data.readInt(as: Int128.self)
···
113
113
return value
114
114
}
115
115
116
116
-
@available(macOS 15.0, *)
116
116
+
@available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *)
117
117
func decode(_ type: UInt128.Type) throws -> UInt128 {
118
118
try checkType(.uint, .nint, forType: UInt128.self)
119
119
let value = try data.readInt(as: UInt128.self)
+2
-2
Sources/CBOR/Encoder/Containers/SingleValueCBOREncodingContainer.swift
···
72
72
parent.register(IntOptimizer(value: value))
73
73
}
74
74
75
75
-
@available(macOS 15.0, *)
75
75
+
@available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *)
76
76
func encode(_ value: Int128) throws {
77
77
parent.register(IntOptimizer(value: value))
78
78
}
79
79
80
80
-
@available(macOS 15.0, *)
80
80
+
@available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *)
81
81
func encode(_ value: UInt128) throws {
82
82
parent.register(IntOptimizer(value: value))
83
83
}