> On Nov 8, 2017, at 5:41 PM, Kelvin Ma via swift-users <swift-users@swift.org> 
> wrote:
> 
> yikes there’s no less verbose way to do that? and if the type isn’t an 
> integer there’s no way to avoid the default initialization? Can this be done 
> with opaques or something?

It would be reasonable to put this all in extension methods on UnsafeRawPointer 
for unaligned loads and stores using memcpy(). (The standard library really 
ought to have these at some point.)

-Joe
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to