public static extern int core_Mat_nSetRect(IntPtr obj, int row, int col, [In, MarshalAs(UnmanagedType.LPArray)] Rect[] vals, int valsLength); [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]