/// <summary> /// Get the memory area pointed to by the indices inside the given view. indices must point to an array of view->ndim indices. /// </summary> public IntPtr GetPointer(long[] indices) { if (disposedValue) { throw new ObjectDisposedException(nameof(PyBuffer)); } if (Runtime.PyVersion < new Version(3, 7)) { throw new NotSupportedException("GetPointer requires at least Python 3.7"); } return(Runtime.PyBuffer_GetPointer(ref _view, indices.Select(x => (IntPtr)x).ToArray())); }