Last active
August 28, 2016 22:25
-
-
Save bartcone/9b7a38bdd8da573ac32d2480709501d8 to your computer and use it in GitHub Desktop.
Swift 3 Punning?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var endpoint = sockaddr_in() | |
let f = UnsafeRawPointer(UnsafeMutableRawPointer(&endpoint)).bindMemory(to: sockaddr.self, capacity: 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment