示例#1
0
 /// <summary>
 /// Returns true if the memory defined by the view is C-style (order is 'C') or Fortran-style (order is 'F') contiguous or either one (order is 'A'). Returns false otherwise.
 /// </summary>
 /// <param name="order">C-style (order is 'C') or Fortran-style (order is 'F') contiguous or either one (order is 'A')</param>
 public bool IsContiguous(BufferOrderStyle order)
 {
     if (disposedValue)
     {
         throw new ObjectDisposedException(nameof(PyBuffer));
     }
     return(Convert.ToBoolean(Runtime.PyBuffer_IsContiguous(ref _view, OrderStyleToChar(order, true))));
 }