[swift-evolution] Contiguous storage byte arrays

Dmitri Gribenko gribozavr at gmail.com
Wed Feb 17 12:34:21 CST 2016

On Wed, Feb 17, 2016 at 6:53 AM, Ted F.A. van Gaalen via
swift-evolution <swift-evolution at swift.org> wrote:
> Hello Johan, thanks for your reply.
> It would be nice if there was some kind of attribute like
> var bytes: [UInt8] contiguous  = ...      //  to declare a contiguous array.

Unless you create an Array by bridging from NSArray, Swift's Array is
guaranteed to have contiguous storage.


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-evolution mailing list