Skip to content

Conversation

@atrick
Copy link
Contributor

@atrick atrick commented Jul 26, 2016

Unsafe[Mutable]Pointer is replaced by Unsafe[Mutable]RawPointer.

Migrating often means simply removing casts to/from UnsafePointer
and working directly with UnsafeRawPointer instead.

Unfortunately some API's, like NSData still want UnsafePointer,
which requires "binding" memory to UInt8 before passing it to the API.

Unsafe[Mutable]Pointer<Void> is replaced by Unsafe[Mutable]RawPointer.

Migrating often means simply removing casts to/from UnsafePointer<UInt8>
and working directly with UnsafeRawPointer instead.

Unfortunately some API's, like NSData still want UnsafePointer<UInt8>,
which requires "binding" memory to UInt8 before passing it to the API.
@atrick
Copy link
Contributor Author

atrick commented Jul 26, 2016

Depends on swift PR:
swiftlang/swift#3724

@atrick atrick merged commit 4d58038 into swiftlang:master Jul 26, 2016
das pushed a commit that referenced this pull request Aug 11, 2016
Update for SE-0107: Migrate Void->Raw.

Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants