Re: [swift-users] Problem calling a C function passing a void** from Swift 3

2016-09-16 Thread Lane Schwartz via swift-users
Thank you! This, in conjunction with a later call to bindMemory(to: capacity:), was exactly what I needed. On Fri, Sep 16, 2016 at 9:47 AM, Quinn "The Eskimo!" via swift-users < swift-users@swift.org> wrote: > > On 15 Sep 2016, at 22:11, Lane Schwartz via swift-users < > swift-users@swift.org> wr

Re: [swift-users] Problem calling a C function passing a void** from Swift 3

2016-09-16 Thread Quinn "The Eskimo!" via swift-users
On 15 Sep 2016, at 22:11, Lane Schwartz via swift-users wrote: > Can anyone help me get the equivalent functionality in Swift 3? I think the main issue here is that, in Swift 3, unsafe pointers, in their various flavours, don’t explicitly support nil. Rather, nil is modelled like it is for

[swift-users] Problem calling a C function passing a void** from Swift 3

2016-09-15 Thread Lane Schwartz via swift-users
Hi, I just moved to Xcode 8 (actually, it upgraded itself without me realizing it, but anyway), and some previously working Swift 2.2 code now doesn't work. I'm having trouble migrating. The code in question is supposed to declare, but not allocate, a block of memory. A void** to that block of me

[swift-users] Problem calling a C function passing a void** from Swift 3

2016-09-15 Thread Lane Schwartz via swift-users
Hi, I just moved to Xcode 8 (actually, it upgraded itself without me realizing it, but anyway), and some previously working Swift 2.2 code now doesn't work. I'm having trouble migrating. The code in question is supposed to declare, but not allocate, a block of memory. A void** to that block of me