Return the smallest multiple of _alignment that fits data of length
_alignment
length
int nextAlignment(int length) { return (length / alignment).ceil() * alignment; }