public PythonList tolist() { CheckBuffer(); if (_matchesBuffer && _step == 1) { return(_buffer.ToList(_start / _itemsize, _end / _itemsize)); } int length = numberOfElements(); object[] elements = new object[length]; for (int i = 0; i < length; i++) { elements[i] = getAtFlatIndex(i); } return(PythonList.FromArrayNoCopy(elements)); }
public PythonList tolist() { CheckBuffer(); return(_buffer.ToList(_start, _end)); }
public List tolist() { return(_buffer.ToList(_start, _end)); }