NextIndex method

int NextIndex()

Implementation

int NextIndex() {
  var i = top++;
  if (i == _size) allocateMoreSpace();
  return i;
}