You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stdlib/public/Darwin/Foundation/Data.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -806,7 +806,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
806
806
}
807
807
}
808
808
809
-
@inlinable@inline(__always) // This should always be inlined into _Representation.hash(into:).
809
+
@inline(__always) // This should always be inlined into _Representation.hash(into:).
810
810
func hash(into hasher:inoutHasher){
811
811
// **NOTE**: this uses `count` (an Int) and NOT `length` (a UInt8)
812
812
// Despite having the same value, they hash differently. InlineSlice and LargeSlice both use `count` (an Int); if you combine the same bytes but with `length` over `count`, you can get a different hash.
@@ -1039,7 +1039,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
1039
1039
storage.copyBytes(to: pointer, from: range)
1040
1040
}
1041
1041
1042
-
@inlinable@inline(__always) // This should always be inlined into _Representation.hash(into:).
1042
+
@inline(__always) // This should always be inlined into _Representation.hash(into:).
1043
1043
func hash(into hasher:inoutHasher){
1044
1044
hasher.combine(count)
1045
1045
@@ -1243,7 +1243,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
1243
1243
storage.copyBytes(to: pointer, from: range)
1244
1244
}
1245
1245
1246
-
@inlinable@inline(__always) // This should always be inlined into _Representation.hash(into:).
1246
+
@inline(__always) // This should always be inlined into _Representation.hash(into:).
1247
1247
func hash(into hasher:inoutHasher){
1248
1248
hasher.combine(count)
1249
1249
@@ -1825,7 +1825,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
1825
1825
}
1826
1826
}
1827
1827
1828
-
@inlinable@inline(__always) // This should always be inlined into Data.hash(into:).
1828
+
@inline(__always) // This should always be inlined into Data.hash(into:).
0 commit comments