Stream: t-lang/wg-unsafe-code-guidelines

Topic: Valid example to use read_unaligned

RalfJ (Jul 04 2019 at 07:38, on Zulip):

Wanted: A valid usage example for read_unaligned. The one we currently have creates intermediate unaligned references.

Shnatsel (Jul 04 2019 at 17:33, on Zulip):

This looks valid to me, unless something subtle is going on:
It can be written completely safely with the same performance starting at Rust 1.34 though

RalfJ (Jul 04 2019 at 21:43, on Zulip):

ah, good point! one can use it in slices

Last update: Sep 18 2020 at 07:45UTC