mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
The Swift 4 spelling only should remain in specific tests that ensure it's still accepted in that mode.
10 lines
184 B
Swift
10 lines
184 B
Swift
import Foundation
|
|
|
|
extension Data {
|
|
@inlinable
|
|
public func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R {
|
|
let r: R? = nil
|
|
return r!
|
|
}
|
|
}
|