Align Data
Simply increase the alignment of any statics or include_bytes!
.
Examples
When including raw data through include_bytes!
it is often used to directly interpret as structured data however it does not align the included bytes according to the structured data's alignment.
This crate fixes this oversight:
use ;
static ALIGNED: & = include_aligned!;
assert_eq!;
The value of any constant expression can be forced to the given alignment:
use ;
let five = aligned!;
assert_eq!;
License
Licensed under MIT License, see license.txt.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.