The way I understand it, it prepares a memory structure that refers to the ‘raw memory’ such that it can be used to access the referenced memory according to the type ‘bound’ to. Regards, Rien
Site: http://balancingrock.nl Blog: http://swiftrien.blogspot.com Github: http://github.com/Swiftrien Project: http://swiftfire.nl > On 01 Nov 2016, at 19:55, Manfred Schubert via swift-users > <swift-users@swift.org> wrote: > > The "UnsafeRawPointer Migration" guide talks about "binding memory to a type“ > as if that was a well known term. I have never heard of it yet though, and > googling it returns no relevant results. I do not understand what binding > memory is supposed to do. > > The migration guide says "Binding uninitialized memory to a type prepares the > memory to store values of that type“, but clearly raw memory does not need to > be prepared (and cannot be) to hold any arbitrary type and value. > > So what is this for, what does it actually do, and to whom is it done (the > raw pointer, or the typed pointer which is returned, or the raw memory)? > > > Manfred > _______________________________________________ > swift-users mailing list > swift-users@swift.org > https://lists.swift.org/mailman/listinfo/swift-users _______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users