popSome method

List<E> popSome (int argNum)

Implementation

List<E> popSome(int argNum) {
  assert(_index + argNum <
      _size); // "End of stack reached, there is probably a leak somewhere";
  assert(argNum <= _container.length); // "Container array is too small";
  BufferUtils.arraycopy(_pool, _index, _container, 0, argNum);
  _index += argNum;
  return _container;
}