@@ -393,10 +393,12 @@ extension JSONDecoderImpl: SingleValueDecodingContainer {
393
393
try decodeInteger ( )
394
394
}
395
395
396
+ #if !os(Linux)
396
397
@available ( macOS 15 . 0 , iOS 18 . 0 , tvOS 18 . 0 , watchOS 11 . 0 , visionOS 2 . 0 , * )
397
398
func decode( _: Int128 . Type ) throws -> Int128 {
398
399
try decodeInteger ( )
399
400
}
401
+ #endif
400
402
401
403
func decode( _: UInt . Type ) throws -> UInt {
402
404
try decodeInteger ( )
@@ -418,10 +420,12 @@ extension JSONDecoderImpl: SingleValueDecodingContainer {
418
420
try decodeInteger ( )
419
421
}
420
422
423
+ #if !os(Linux)
421
424
@available ( macOS 15 . 0 , iOS 18 . 0 , tvOS 18 . 0 , watchOS 11 . 0 , visionOS 2 . 0 , * )
422
425
func decode( _: UInt128 . Type ) throws -> UInt128 {
423
426
try decodeInteger ( )
424
427
}
428
+ #endif
425
429
426
430
func decode< T: Decodable > ( _ type: T . Type ) throws -> T {
427
431
return try unbox ( topValue, as: type, for: codingPathNode, _CodingKey? . none)
@@ -603,13 +607,15 @@ private final class DefaultKeyedContainer<K: CodingKey>: KeyedDecodingContainerP
603
607
let jsonValue = try getValue ( forKey: key)
604
608
return try decodeInteger ( jsonValue, forKey: key)
605
609
}
606
-
610
+
611
+ #if !os(Linux)
607
612
@available ( macOS 15 . 0 , iOS 18 . 0 , tvOS 18 . 0 , watchOS 11 . 0 , visionOS 2 . 0 , * )
608
613
func decode( _: Int128 . Type , forKey key: K ) throws -> Int128 {
609
614
let jsonValue = try getValue ( forKey: key)
610
615
return try decodeInteger ( jsonValue, forKey: key)
611
616
}
612
-
617
+ #endif
618
+
613
619
func decodeIfPresent( _: Int64 . Type , forKey key: K ) throws -> Int64 ? {
614
620
guard let jsonValue = getValueIfPresent ( forKey: key) else {
615
621
return nil
@@ -670,11 +676,13 @@ private final class DefaultKeyedContainer<K: CodingKey>: KeyedDecodingContainerP
670
676
return try decodeInteger ( jsonValue, forKey: key)
671
677
}
672
678
679
+ #if !os(Linux)
673
680
@available ( macOS 15 . 0 , iOS 18 . 0 , tvOS 18 . 0 , watchOS 11 . 0 , visionOS 2 . 0 , * )
674
681
func decode( _: UInt128 . Type , forKey key: K ) throws -> UInt128 {
675
682
let jsonValue = try getValue ( forKey: key)
676
683
return try decodeInteger ( jsonValue, forKey: key)
677
684
}
685
+ #endif
678
686
679
687
func decodeIfPresent( _: UInt64 . Type , forKey key: K ) throws -> UInt64 ? {
680
688
guard let jsonValue = getValueIfPresent ( forKey: key) else {
@@ -973,11 +981,13 @@ private final class PreTransformKeyedContainer<K: CodingKey>: KeyedDecodingConta
973
981
return try decodeInteger ( jsonValue, forKey: key)
974
982
}
975
983
984
+ #if !os(Linux)
976
985
@available ( macOS 15 . 0 , iOS 18 . 0 , tvOS 18 . 0 , watchOS 11 . 0 , visionOS 2 . 0 , * )
977
986
func decode( _: Int128 . Type , forKey key: K ) throws -> Int128 {
978
987
let jsonValue = try getValue ( forKey: key)
979
988
return try decodeInteger ( jsonValue, forKey: key)
980
989
}
990
+ #endif
981
991
982
992
func decodeIfPresent( _: Int64 . Type , forKey key: K ) throws -> Int64 ? {
983
993
guard let jsonValue = getValueIfPresent ( forKey: key) else {
@@ -1039,11 +1049,13 @@ private final class PreTransformKeyedContainer<K: CodingKey>: KeyedDecodingConta
1039
1049
return try decodeInteger ( jsonValue, forKey: key)
1040
1050
}
1041
1051
1052
+ #if !os(Linux)
1042
1053
@available ( macOS 15 . 0 , iOS 18 . 0 , tvOS 18 . 0 , watchOS 11 . 0 , visionOS 2 . 0 , * )
1043
1054
func decode( _: UInt128 . Type , forKey key: K ) throws -> UInt128 {
1044
1055
let jsonValue = try getValue ( forKey: key)
1045
1056
return try decodeInteger ( jsonValue, forKey: key)
1046
1057
}
1058
+ #endif
1047
1059
1048
1060
func decodeIfPresent( _: UInt64 . Type , forKey key: K ) throws -> UInt64 ? {
1049
1061
guard let jsonValue = getValueIfPresent ( forKey: key) else {
@@ -1422,11 +1434,13 @@ private struct UnkeyedContainer: UnkeyedDecodingContainer {
1422
1434
return try decodeInteger ( value)
1423
1435
}
1424
1436
1437
+ #if !os(Linux)
1425
1438
@available ( macOS 15 . 0 , iOS 18 . 0 , tvOS 18 . 0 , watchOS 11 . 0 , visionOS 2 . 0 , * )
1426
1439
mutating func decode( _: Int128 . Type ) throws -> Int128 {
1427
1440
let value = try peekNextValue ( ofType: Int128 . self)
1428
1441
return try decodeInteger ( value)
1429
1442
}
1443
+ #endif
1430
1444
1431
1445
mutating func decodeIfPresent( _: Int64 . Type ) throws -> Int64 ? {
1432
1446
guard let value = peekNextValueIfPresent ( ofType: Int64 . self) , !value. isNull else {
@@ -1493,11 +1507,13 @@ private struct UnkeyedContainer: UnkeyedDecodingContainer {
1493
1507
return try decodeInteger ( value)
1494
1508
}
1495
1509
1510
+ #if !os(Linux)
1496
1511
@available ( macOS 15 . 0 , iOS 18 . 0 , tvOS 18 . 0 , watchOS 11 . 0 , visionOS 2 . 0 , * )
1497
1512
mutating func decode( _: UInt128 . Type ) throws -> UInt128 {
1498
1513
let value = try peekNextValue ( ofType: UInt . self)
1499
1514
return try decodeInteger ( value)
1500
1515
}
1516
+ #endif
1501
1517
1502
1518
mutating func decodeIfPresent( _: UInt64 . Type ) throws -> UInt64 ? {
1503
1519
guard let value = peekNextValueIfPresent ( ofType: UInt . self) , !value. isNull else {
0 commit comments