push method

void push(
  1. T value
)

Implementation

void push(T value) {
  _array[_getCyclicIndex(_length)] = value;
  if (_length == _array.length) {
    _startIndex++;
    if (_startIndex == _array.length) {
      _startIndex = 0;
    }
  } else {
    _length++;
  }
}