Пример #1
0
        public static XmlOutputBuffer __xmlOutputBufferCreateFilename(string URI, XmlCharEncodingHandler encoder, int compression)
        {
            var             __arg1 = ReferenceEquals(encoder, null) ? IntPtr.Zero : encoder.__Instance;
            var             __ret  = __Internal.__xmlOutputBufferCreateFilename(URI, __arg1, compression);
            XmlOutputBuffer __result0;

            if (__ret == IntPtr.Zero)
            {
                __result0 = null;
            }
            else if (XmlOutputBuffer.NativeToManagedMap.ContainsKey(__ret))
            {
                __result0 = XmlOutputBuffer.NativeToManagedMap[__ret];
            }
            else
            {
                __result0 = XmlOutputBuffer.__CreateInstance(__ret);
            }
            return(__result0);
        }
Пример #2
0
        public static XmlOutputBuffer XmlOutputBufferCreateFd(int fd, XmlCharEncodingHandler encoder)
        {
            var             __arg1 = ReferenceEquals(encoder, null) ? IntPtr.Zero : encoder.__Instance;
            var             __ret  = __Internal.XmlOutputBufferCreateFd(fd, __arg1);
            XmlOutputBuffer __result0;

            if (__ret == IntPtr.Zero)
            {
                __result0 = null;
            }
            else if (XmlOutputBuffer.NativeToManagedMap.ContainsKey(__ret))
            {
                __result0 = XmlOutputBuffer.NativeToManagedMap[__ret];
            }
            else
            {
                __result0 = XmlOutputBuffer.__CreateInstance(__ret);
            }
            return(__result0);
        }
Пример #3
0
        public static XmlOutputBuffer XmlOutputBufferCreateIO(XmlOutputWriteCallback iowrite, XmlOutputCloseCallback ioclose, IntPtr ioctx, XmlCharEncodingHandler encoder)
        {
            var             __arg0 = iowrite == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(iowrite);
            var             __arg1 = ioclose == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(ioclose);
            var             __arg3 = ReferenceEquals(encoder, null) ? IntPtr.Zero : encoder.__Instance;
            var             __ret  = __Internal.XmlOutputBufferCreateIO(__arg0, __arg1, ioctx, __arg3);
            XmlOutputBuffer __result0;

            if (__ret == IntPtr.Zero)
            {
                __result0 = null;
            }
            else if (XmlOutputBuffer.NativeToManagedMap.ContainsKey(__ret))
            {
                __result0 = XmlOutputBuffer.NativeToManagedMap[__ret];
            }
            else
            {
                __result0 = XmlOutputBuffer.__CreateInstance(__ret);
            }
            return(__result0);
        }