[swift-users] raw buffer pointer load alignment
jgroff at apple.com
Fri Nov 10 11:26:45 CST 2017
> On Nov 8, 2017, at 5:41 PM, Kelvin Ma via swift-users <swift-users at 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.)
More information about the swift-users