public static XmlParserInputBuffer XmlParserInputBufferCreateFd(int fd, XmlCharEncoding enc) { var __ret = __Internal.XmlParserInputBufferCreateFd(fd, enc); XmlParserInputBuffer __result0; if (__ret == IntPtr.Zero) { __result0 = null; } else if (XmlParserInputBuffer.NativeToManagedMap.ContainsKey(__ret)) { __result0 = XmlParserInputBuffer.NativeToManagedMap[__ret]; } else { __result0 = XmlParserInputBuffer.__CreateInstance(__ret); } return(__result0); }
internal static extern IntPtr __xmlParserInputBufferCreateFilename([MarshalAs(UnmanagedType.LPUTF8Str)] string URI, XmlCharEncoding enc);
internal static extern IntPtr XmlParserInputBufferCreateIO(IntPtr ioread, IntPtr ioclose, IntPtr ioctx, XmlCharEncoding enc);
internal static extern IntPtr XmlParserInputBufferCreateStatic([MarshalAs(UnmanagedType.LPUTF8Str)] string mem, int size, XmlCharEncoding enc);
internal static extern IntPtr XmlParserInputBufferCreateFd(int fd, XmlCharEncoding enc);
public static XmlParserInputBuffer XmlParserInputBufferCreateIO(XmlInputReadCallback ioread, XmlInputCloseCallback ioclose, IntPtr ioctx, XmlCharEncoding enc) { var __arg0 = ioread == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(ioread); var __arg1 = ioclose == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(ioclose); var __ret = __Internal.XmlParserInputBufferCreateIO(__arg0, __arg1, ioctx, enc); XmlParserInputBuffer __result0; if (__ret == IntPtr.Zero) { __result0 = null; } else if (XmlParserInputBuffer.NativeToManagedMap.ContainsKey(__ret)) { __result0 = XmlParserInputBuffer.NativeToManagedMap[__ret]; } else { __result0 = XmlParserInputBuffer.__CreateInstance(__ret); } return(__result0); }
internal static extern IntPtr XmlParserInputBufferCreateFile(IntPtr file, XmlCharEncoding enc);
internal static extern IntPtr XmlAllocParserInputBuffer(XmlCharEncoding enc);