Skip to content

Prevent incorrect use of pointers

Pre-release
Pre-release
Compare
Choose a tag to compare
@alejandro-isaza alejandro-isaza released this 04 Apr 23:16
· 70 commits to master since this release

The problem with having a pointer property is that it's too easy to get the pointer and have the object be destroyed immediately, before getting a chance of even using the pointer. Therefore switched to the Swift's array way of doing it: withUsafePointer methods. Also added pointer utility methods to avoid having nested withUsafePointer calls.