Something like `unsafelyInitializedBytes<T>(as _: T.Type)` -> T

The poblem with load is (if I remember correctly) that it requires the memory to be properly aligned for the target type. It has been suggested to provide an unaligned version as well, e.g. here: Built-in unaligned loads.

1 Like