public static XmlParserInputBuffer __xmlParserInputBufferCreateFilename(string URI, XmlCharEncoding enc) { var __ret = __Internal.__xmlParserInputBufferCreateFilename(URI, 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); }
public static XmlParserInputBuffer XmlParserInputBufferCreateStatic(string mem, int size, XmlCharEncoding enc) { var __ret = __Internal.XmlParserInputBufferCreateStatic(mem, size, 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); }
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); }