alignOffset static method

int alignOffset(
  1. int offset,
  2. int alignment
)

Get the next aligned offset

  • offset: The current offset
  • alignment: The alignment boundary Returns the next aligned offset

Implementation

static int alignOffset(int offset, int alignment) {
  return offset + calculatePadding(offset, alignment);
}