core_FileStorage_isOpened() private method

private core_FileStorage_isOpened ( IntPtr obj ) : int
obj System.IntPtr
return int
コード例 #1
0
ファイル: FileStorage.cs プロジェクト: yyp2003net/opencvsharp
        /// <summary>
        /// Returns true if the object is associated with currently opened file.
        /// </summary>
        /// <returns></returns>
        public virtual bool IsOpened()
        {
            ThrowIfDisposed();
            var res = NativeMethods.core_FileStorage_isOpened(ptr) != 0;

            GC.KeepAlive(this);
            return(res);
        }
コード例 #2
0
ファイル: FileStorage.cs プロジェクト: zhaohh1985/opencvsharp
 /// <summary>
 /// Returns true if the object is associated with currently opened file.
 /// </summary>
 /// <returns></returns>
 public virtual bool IsOpened()
 {
     ThrowIfDisposed();
     NativeMethods.HandleException(
         NativeMethods.core_FileStorage_isOpened(ptr, out var ret));
     GC.KeepAlive(this);
     return(ret != 0);
 }
コード例 #3
0
ファイル: FileStorage.cs プロジェクト: scmyxp/opencvsharp
 /// <summary>
 /// Returns true if the object is associated with currently opened file.
 /// </summary>
 /// <returns></returns>
 public virtual bool IsOpened()
 {
     if (disposed)
     {
         throw new ObjectDisposedException("FileStorage");
     }
     return(NativeMethods.core_FileStorage_isOpened(ptr) != 0);
 }
コード例 #4
0
 /// <summary>
 /// Returns true if the object is associated with currently opened file.
 /// </summary>
 /// <returns></returns>
 public virtual bool IsOpened()
 {
     ThrowIfDisposed();
     return(NativeMethods.core_FileStorage_isOpened(ptr) != 0);
 }