[swift-users] Function to unsafe pointer and back

Andrew Trick atrick at apple.com
Fri Sep 2 12:07:43 CDT 2016


> On Sep 2, 2016, at 9:49 AM, Jordan Rose <jordan_rose at apple.com> wrote:
> 
> (One place we are still weak is in converting between C function references and UnsafeRawPointer—there’s no dedicated API to do this. I’m not sure we have a recommendation in the rare cases when this is necessary. Andy?)

Good question. I don’t know how to do off the top of my head that without passing a function typed value off to C as a function pointer and returning a void*.

-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160902/503c01e5/attachment.html>


More information about the swift-users mailing list