code: public static int cudaArrayGetInfo(cudaChannelFormatDesc desc, cudaExtent extent, int flags[], cudaArray array)
      {
          return checkResult(cudaArrayGetInfoNative(desc, extent, flags, array));
      }
docs: Gets info about the specified cudaArray.
  
  <pre>
  cudaError_t cudaArrayGetInfo (
  cudaChannelFormatDesc* desc,
  cudaExtent* extent,
  unsigned int* flags,
  cudaArray_t array )
  </pre>
  <div>
  <p>Gets info about the specified cudaArray.
  Returns in <tt>*desc</tt>, <tt>*extent</tt> and <tt>*flags</tt>
  respectively, the type, shape and flags of <tt>array</tt>.
  </p>
  <p>Any of <tt>*desc</tt>, <tt>*extent</tt>
  and <tt>*flags</tt> may be specified as NULL.
  </p>
  <div>
  <span>Note:</span>
  <p>Note that this
  function may also return error codes from previous, asynchronous
  launches.
  </p>
  </div>
  </p>
  </div>
  
  @param desc Returned array type
  @param extent Returned array shape. 2D arrays will have depth of zero
  @param flags Returned array flags
  @param array The cudaArray to get info for
  
  @return cudaSuccess, cudaErrorInvalidValue