[swift-users] raw buffer pointer load alignment
Joe Groff
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.)
-Joe
More information about the swift-users
mailing list