Skip to content

Commit 8e3fe3c

Browse files
committed
Update availability of Span projections
1 parent 99f6ed3 commit 8e3fe3c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Sources/FoundationEssentials/Data/Data.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,8 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22032203
return try _representation.withUnsafeBytes(body)
22042204
}
22052205

2206-
@available(FoundationSpan 6.2, *)
2206+
@available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
2207+
@_alwaysEmitIntoClient
22072208
public var bytes: RawSpan {
22082209
@lifetime(borrow self)
22092210
borrowing get {
@@ -2230,7 +2231,8 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22302231
}
22312232
}
22322233

2233-
@available(FoundationSpan 6.2, *)
2234+
@available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
2235+
@_alwaysEmitIntoClient
22342236
public var span: Span<UInt8> {
22352237
@lifetime(borrow self)
22362238
borrowing get {
@@ -2239,7 +2241,8 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22392241
}
22402242
}
22412243

2242-
@available(FoundationSpan 6.2, *)
2244+
@available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
2245+
@_alwaysEmitIntoClient
22432246
public var mutableBytes: MutableRawSpan {
22442247
@lifetime(&self)
22452248
mutating get {
@@ -2266,7 +2269,8 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22662269
}
22672270
}
22682271

2269-
@available(FoundationSpan 6.2, *)
2272+
@available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
2273+
@_alwaysEmitIntoClient
22702274
public var mutableSpan: MutableSpan<UInt8> {
22712275
@lifetime(&self)
22722276
mutating get {

0 commit comments

Comments
 (0)