15
15
/// In practice, most types conforming to this protocol will be Collections,
16
16
/// but they need not be--they need only have an Element type and count, and
17
17
/// provide the withUnsafeBufferPointer function.
18
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
18
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
19
19
public protocol AccelerateBuffer {
20
20
/// The buffer's element type.
21
21
associatedtype Element
@@ -34,7 +34,7 @@ public protocol AccelerateBuffer {
34
34
///
35
35
/// In practice, most types conforming to this protocol will be
36
36
/// MutableCollections, but they need not be.
37
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
37
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
38
38
public protocol AccelerateMutableBuffer : AccelerateBuffer {
39
39
/// Calls the given closure with a pointer to the object's mutable
40
40
/// contiguous storage.
@@ -43,7 +43,7 @@ public protocol AccelerateMutableBuffer: AccelerateBuffer {
43
43
) rethrows -> R
44
44
}
45
45
46
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
46
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
47
47
public extension AccelerateBuffer where Self: Collection {
48
48
func withUnsafeBufferPointer< R> (
49
49
_ body: ( UnsafeBufferPointer < Element > ) throws -> R
@@ -52,7 +52,7 @@ public extension AccelerateBuffer where Self: Collection {
52
52
}
53
53
}
54
54
55
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
55
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
56
56
extension AccelerateMutableBuffer where Self: MutableCollection {
57
57
public mutating func withUnsafeMutableBufferPointer< R> (
58
58
_ body: ( inout UnsafeMutableBufferPointer < Element > ) throws -> R
@@ -61,23 +61,23 @@ extension AccelerateMutableBuffer where Self: MutableCollection {
61
61
}
62
62
}
63
63
64
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
64
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
65
65
extension Array : AccelerateMutableBuffer { }
66
66
67
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
67
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
68
68
extension ContiguousArray : AccelerateMutableBuffer { }
69
69
70
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
70
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
71
71
extension ArraySlice : AccelerateMutableBuffer { }
72
72
73
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
73
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
74
74
extension UnsafeBufferPointer : AccelerateBuffer { }
75
75
76
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
76
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
77
77
extension UnsafeMutableBufferPointer : AccelerateMutableBuffer { }
78
78
79
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
79
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
80
80
extension Slice : AccelerateBuffer where Base: Collection { }
81
81
82
- @available ( iOS 9999 , OSX 9999 , tvOS 9999 , watchOS 9999 , * )
82
+ @available ( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * )
83
83
extension Slice : AccelerateMutableBuffer where Base: MutableCollection { }
0 commit comments