macro_rules! include_aligned { ($align:ty, $file:expr) => { ... }; }
Expand description
Includes bytes with given alignment.
This macro ensures that the bytes included by include_bytes!
is properly aligned.
ยงExamples
use align_data::{include_aligned, Align4K};
static ALIGNED: &[u8] = include_aligned!(Align4K, "lib.rs");
assert_eq!(ALIGNED.as_ptr() as usize % 0x1000, 0);