[][src]Macro align_data::include_aligned

macro_rules! include_aligned {
    ($align:ty, $file:expr) => { ... };
}

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);