示例#1
0
        public bool SetContent(QXmlInputSource source, QXmlReader reader, StringBuilder errorMsg, ref int errorLine, ref int errorColumn)
        {
            StackItem[] stack = new StackItem[6];
#if DEBUG
            stack[1].s_class = (IntPtr)DebugGCHandle.Alloc(source);
#else
            stack[1].s_class = (IntPtr)GCHandle.Alloc(source);
#endif
#if DEBUG
            stack[2].s_class = (IntPtr)DebugGCHandle.Alloc(reader);
#else
            stack[2].s_class = (IntPtr)GCHandle.Alloc(reader);
#endif
#if DEBUG
            stack[3].s_class = (IntPtr)DebugGCHandle.Alloc(errorMsg);
#else
            stack[3].s_class = (IntPtr)GCHandle.Alloc(errorMsg);
#endif
            stack[4].s_int = errorLine;
            stack[5].s_int = errorColumn;
            interceptor.Invoke("setContent##$$$", "setContent(QXmlInputSource*, QXmlReader*, QString*, int*, int*)", stack);
#if DEBUG
            DebugGCHandle.Free((GCHandle)stack[1].s_class);
#else
            ((GCHandle)stack[1].s_class).SynchronizedFree();
#endif
#if DEBUG
            DebugGCHandle.Free((GCHandle)stack[2].s_class);
#else
            ((GCHandle)stack[2].s_class).SynchronizedFree();
#endif
#if DEBUG
            DebugGCHandle.Free((GCHandle)stack[3].s_class);
#else
            ((GCHandle)stack[3].s_class).SynchronizedFree();
#endif
            errorLine   = stack[4].s_int;
            errorColumn = stack[5].s_int;
            return(stack[0].s_bool);
        }
示例#2
0
 public bool SetContent(QXmlInputSource source, QXmlReader reader)
 {
     return((bool)interceptor.Invoke("setContent##", "setContent(QXmlInputSource*, QXmlReader*)", typeof(bool), typeof(QXmlInputSource), source, typeof(QXmlReader), reader));
 }
示例#3
0
 public bool SetContent(QXmlInputSource source, QXmlReader reader, StringBuilder errorMsg)
 {
     return((bool)interceptor.Invoke("setContent##$", "setContent(QXmlInputSource*, QXmlReader*, QString*)", typeof(bool), typeof(QXmlInputSource), source, typeof(QXmlReader), reader, typeof(StringBuilder), errorMsg));
 }
示例#4
0
文件: QDomDocument.cs 项目: KDE/qyoto
 public bool SetContent(QXmlInputSource source, QXmlReader reader)
 {
     return (bool) interceptor.Invoke("setContent##", "setContent(QXmlInputSource*, QXmlReader*)", typeof(bool), typeof(QXmlInputSource), source, typeof(QXmlReader), reader);
 }
示例#5
0
文件: QDomDocument.cs 项目: KDE/qyoto
 public bool SetContent(QXmlInputSource source, QXmlReader reader, StringBuilder errorMsg)
 {
     return (bool) interceptor.Invoke("setContent##$", "setContent(QXmlInputSource*, QXmlReader*, QString*)", typeof(bool), typeof(QXmlInputSource), source, typeof(QXmlReader), reader, typeof(StringBuilder), errorMsg);
 }
示例#6
0
文件: QDomDocument.cs 项目: KDE/qyoto
 public bool SetContent(QXmlInputSource source, QXmlReader reader, StringBuilder errorMsg, ref int errorLine)
 {
     StackItem[] stack = new StackItem[5];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(source);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(source);
     #endif
     #if DEBUG
     stack[2].s_class = (IntPtr) DebugGCHandle.Alloc(reader);
     #else
     stack[2].s_class = (IntPtr) GCHandle.Alloc(reader);
     #endif
     #if DEBUG
     stack[3].s_class = (IntPtr) DebugGCHandle.Alloc(errorMsg);
     #else
     stack[3].s_class = (IntPtr) GCHandle.Alloc(errorMsg);
     #endif
     stack[4].s_int = errorLine;
     interceptor.Invoke("setContent##$$", "setContent(QXmlInputSource*, QXmlReader*, QString*, int*)", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).SynchronizedFree();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[2].s_class);
     #else
     ((GCHandle) stack[2].s_class).SynchronizedFree();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[3].s_class);
     #else
     ((GCHandle) stack[3].s_class).SynchronizedFree();
     #endif
     errorLine = stack[4].s_int;
     return stack[0].s_bool;
 }