Skip to content

Commit

Permalink
[eclipse-iceoryx#195] Add alignment constants
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Apr 28, 2024
1 parent 670690c commit f2e9576
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions iceoryx2-bb/elementary/src/alignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@
//! Represents the alignment memory can have. Ensures that the content is always
//! a power of 2 and not zero.
pub const ALIGNMENT_1: Alignment = Alignment(1);
pub const ALIGNMENT_2: Alignment = Alignment(2);
pub const ALIGNMENT_4: Alignment = Alignment(4);
pub const ALIGNMENT_8: Alignment = Alignment(8);
pub const ALIGNMENT_16: Alignment = Alignment(16);
pub const ALIGNMENT_32: Alignment = Alignment(32);
pub const ALIGNMENT_64: Alignment = Alignment(64);
pub const ALIGNMENT_128: Alignment = Alignment(128);
pub const ALIGNMENT_256: Alignment = Alignment(256);
pub const ALIGNMENT_512: Alignment = Alignment(512);
pub const ALIGNMENT_1024: Alignment = Alignment(1024);
pub const ALIGNMENT_2048: Alignment = Alignment(2048);
pub const ALIGNMENT_4096: Alignment = Alignment(4096);

/// Contains the alignment memory can have.
///
/// # Example
Expand Down

0 comments on commit f2e9576

Please sign in to comment.