nextAlignment method

int nextAlignment(
  1. int length
)

Return the smallest multiple of _alignment that fits data of length

Implementation

int nextAlignment(int length) {
  return (length / alignment).ceil() * alignment;
}