[swift-users] UnsafeMutablePointer on the stack?

Jean-Denis Muys jdmuys at gmail.com
Mon Oct 3 04:30:26 CDT 2016


Indeed,

But that function was just an example. I wanted to learn about how to use the stack to call C functions that will fill some memory area passed as a pointer.

Jean-Denis



> On 3 Oct 2016, at 09:46, Quinn The Eskimo! via swift-users <swift-users at swift.org> wrote:
> 
> 
> On 3 Oct 2016, at 01:14, Mike Ferenduros via swift-users <swift-users at swift.org> wrote:
> 
>> Personally I would be surprised if the malloc caused an actual measurable performance hit tbh.
> 
> Quite.  SecRandom generates cryptographically sound random numbers and thus is not optimised for speed.
> 
> Share and Enjoy
> --
> Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
> 
> 
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users



More information about the swift-users mailing list