private static int getNextIx(int ix, int count, int step) {
    ix += step;
    assert ix <= count; // We expect the start at 0 and count divisible by step.
    return ix == count ? 0 : ix;
  }
Unsets the headers (meaning this does not refer to a buffer).
llap-server/src/java/org/apache/hadoop/hive/llap/cache/BuddyAllocator.java