示例#1
0
        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));
        }
示例#2
0
 public PythonList tolist()
 {
     CheckBuffer();
     return(_buffer.ToList(_start, _end));
 }
示例#3
0
 public List tolist()
 {
     return(_buffer.ToList(_start, _end));
 }