Last active
March 26, 2017 17:52
-
-
Save bartlomiejn/08ef56631ec98787eb5ea4139e78c711 to your computer and use it in GitHub Desktop.
C bridge usage in Swift for swifty-explorations.ghost.io
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
let object = makeObject(("Value" as NSString).utf8String) // UnsafeMutableRawPointer? type | |
setNewStoredValue(object, ("New value" as NSString).utf8String) | |
print(String(cString: getStoredValue(object))) // New value | |
removeObject(object) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment