sdaiSaveModelAsXmlBN
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "sdaiSaveModelAsXmlBN")] public static extern void x86_sdaiSaveModelAsXmlBN(Int32 model, string fileName); [DllImport(enginedll, EntryPoint = "sdaiSaveModelAsXmlBN")] public static extern void x64_sdaiSaveModelAsXmlBN(Int64 model, string fileName); public static void sdaiSaveModelAsXmlBN(Int64 model, string fileName) { if (IntPtr.Size == 4) { x86_sdaiSaveModelAsXmlBN((Int32)model, fileName); } else { x64_sdaiSaveModelAsXmlBN(model, fileName); } } [DllImport(enginedll, EntryPoint = "sdaiSaveModelAsXmlBN")] public static extern void x86_sdaiSaveModelAsXmlBN(Int32 model, byte[] fileName); [DllImport(enginedll, EntryPoint = "sdaiSaveModelAsXmlBN")] public static extern void x64_sdaiSaveModelAsXmlBN(Int64 model, byte[] fileName); public static void sdaiSaveModelAsXmlBN(Int64 model, byte[] fileName) { if (IntPtr.Size == 4) { x86_sdaiSaveModelAsXmlBN((Int32)model, fileName); } else { x64_sdaiSaveModelAsXmlBN(model, fileName); } }