ms_pdb/utils/
align.rs

1//! Alignment and padding utilities
2
3/// Returns the number of alignment padding bytes that are needed to reach an alignment of 4,
4/// given the number of bytes already in a buffer.
5pub fn alignment_bytes_needed_4(n: usize) -> usize {
6    (4 - (n & 3)) & 3
7}