OpenCvSharp.NativeMethods.core_FileNode_toString C# (CSharp) Method

core_FileNode_toString() private method

private core_FileNode_toString ( IntPtr obj, StringBuilder buf, int bufLength ) : void
obj System.IntPtr
buf StringBuilder
bufLength int
return void
        public static extern void core_FileNode_toString(
            IntPtr obj, StringBuilder buf, int bufLength);

Usage Example

コード例 #1
0
        /// <summary>
        /// Returns the node content as text string
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            ThrowIfDisposed();

            using var buf = new StdString();
            NativeMethods.HandleException(
                NativeMethods.core_FileNode_toString(ptr, buf.CvPtr));

            GC.KeepAlive(this);
            return(buf.ToString());
        }
NativeMethods