Skip to content

Commit 4bf49dc

Browse files
committed
fix protocol warnings
1 parent 885299f commit 4bf49dc

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Sources/StructuredFieldValues/Decoder/BareItemDecoder.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ extension BareItemDecoder: SingleValueDecodingContainer {
6262
try self._decodeFixedWidthInteger(type)
6363
}
6464

65+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
66+
func decode(_ type: UInt128.Type) throws -> UInt128 {
67+
try self._decodeFixedWidthInteger(type)
68+
}
69+
70+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
71+
func decode(_ type: Int128.Type) throws -> Int128 {
72+
try self._decodeFixedWidthInteger(type)
73+
}
74+
6575
func decode(_ type: UInt.Type) throws -> UInt {
6676
try self._decodeFixedWidthInteger(type)
6777
}

Sources/StructuredFieldValues/Encoder/StructuredFieldValueEncoder.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ extension _StructuredFieldEncoder: SingleValueEncodingContainer {
260260
try self._encodeFixedWidthInteger(value)
261261
}
262262

263+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
264+
func encode(_ value: Int128) throws {
265+
try self._encodeFixedWidthInteger(value)
266+
}
267+
263268
func encode(_ value: UInt) throws {
264269
try self._encodeFixedWidthInteger(value)
265270
}
@@ -280,6 +285,11 @@ extension _StructuredFieldEncoder: SingleValueEncodingContainer {
280285
try self._encodeFixedWidthInteger(value)
281286
}
282287

288+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
289+
func encode(_ value: UInt128) throws {
290+
try self._encodeFixedWidthInteger(value)
291+
}
292+
283293
func encode(_ data: Data) throws {
284294
let encoded = data.base64EncodedString()
285295
try self.currentStackEntry.storage.insertBareItem(.undecodedByteSequence(encoded))

0 commit comments

Comments
 (0)