[swift-users] How much memory does withMemoryRebound bind

Guillaume Lessard glessard at tffenterprises.com
Thu Dec 29 16:03:34 CST 2016

Hi Etan,

`withMemoryRebound` does not copy memory.
The proposal for UnsafeRawPointer contains information about the memory model (as related to pointers):

(also, the method is defined in the following file:

The capacity parameter of withMemoryRebound allows rebinding a contiguous buffer at once; it might be nice if it had a default value of 1.

Guillaume Lessard

More information about the swift-users mailing list