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
Update the implementation to address the deprecation warnings from the
newer swift compiler. This is meant to be an equivalent update (NFCI).
Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
@@ -238,11 +238,11 @@ public struct DispatchData : RandomAccessCollection {
238
238
/// - parameter buffer: A buffer to copy the data into.
239
239
/// - parameter range: A range in the data to copy into the buffer. If the range is empty, this function will return 0 without copying anything. If the range is nil, as much data as will fit into `buffer` is copied.
240
240
/// - returns: Number of bytes copied into the destination buffer.
241
-
publicfunc copyBytes<DestinationType>(to buffer:UnsafeMutableBufferPointer<DestinationType>, from range:CountableRange<Index>?=nil)->Int{
241
+
publicfunc copyBytes<DestinationType>(to buffer:UnsafeMutableBufferPointer<DestinationType>, from range:Range<Index>?=nil)->Int{
242
242
letcnt= count
243
243
guard cnt >0else{return0}
244
244
245
-
letcopyRange:CountableRange<Index>
245
+
letcopyRange:Range<Index>
246
246
iflet r = range {
247
247
guard !r.isEmpty else{return0}
248
248
precondition(r.startIndex >=0)
@@ -275,14 +275,14 @@ public struct DispatchData : RandomAccessCollection {
275
275
return ptr!.load(fromByteOffset: index - offset, as:UInt8.self)
276
276
}
277
277
278
-
public subscript(bounds:Range<Int>)->RandomAccessSlice<DispatchData>{
0 commit comments