pub fn pad_size(size: usize) -> usize
Expand description
compute padding size.
RFC5766 stipulates that the attribute content is a multiple of 4.
ยงUnit Test
assert_eq!(faster_stun::util::pad_size(4), 0);
assert_eq!(faster_stun::util::pad_size(0), 0);
assert_eq!(faster_stun::util::pad_size(5), 3);