alignOffset static method
Get the next aligned offset
offset: The current offsetalignment: The alignment boundary Returns the next aligned offset
Implementation
static int alignOffset(int offset, int alignment) {
return offset + calculatePadding(offset, alignment);
}