package exe // Padding calculates the padding needed to align `n` bytes with the specified alignment. func Padding[T int | uint | int64 | uint64 | int32 | uint32](n T, align T) T { return align - (n % align) }