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