pub fn pad_bytes_to(n: usize, align: usize) -> usizeExpand description
Returns the number of padding bytes needed to align n to align.
use lance_core::utils::bit::pad_bytes_to;
assert_eq!(pad_bytes_to(0, 8), 0);
assert_eq!(pad_bytes_to(1, 8), 7);
assert_eq!(pad_bytes_to(8, 8), 0);
assert_eq!(pad_bytes_to(9, 8), 7);