ps_datachunk/utils/
constants.rs

1use ps_hash::Hash;
2
3use super::rounding::round_up;
4
5/// 16 bytes
6pub const HASH_ALIGNMENT: usize = 4;
7
8/// 8 bytes
9pub const SIZE_ALIGNMENT: usize = 3;
10
11/// 54 bytes
12pub const HASH_SIZE: usize = round_up(std::mem::size_of::<Hash>(), SIZE_ALIGNMENT);
13
14/// 8 bytes on x86-64
15pub const SIZE_SIZE: usize = round_up(std::mem::size_of::<usize>(), SIZE_ALIGNMENT);