[stdlib] Add "Mutable" to [Autoreleasing]UnsafePointer

UnsafePointer becomes UnsafeMutablePointer
AutoreleasingUnsafePointer becomes AutoreleasingUnsafeMutablePointer

Swift SVN r20316
This commit is contained in:
Dave Abrahams
2014-07-22 16:56:23 +00:00
parent 6867ce2e2c
commit 21669b3aee
107 changed files with 717 additions and 650 deletions

View File

@@ -775,12 +775,13 @@ extension UTF16 {
}
public static func copy<T: StringElementType, U: StringElementType>(
source: UnsafePointer<T>, destination: UnsafePointer<U>, count: Int
source: UnsafeMutablePointer<T>,
destination: UnsafeMutablePointer<U>, count: Int
) {
if strideof(T.self) == strideof(U.self) {
_memcpy(
dest: UnsafePointer(destination),
src: UnsafePointer(source),
dest: UnsafeMutablePointer(destination),
src: UnsafeMutablePointer(source),
size: UInt(count) * UInt(strideof(U.self)))
}
else {