|
|
|
@ -1,8 +1,6 @@
@@ -1,8 +1,6 @@
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
// <auto-generated>
|
|
|
|
|
// This is autogenerated code by CppSharp.
|
|
|
|
|
// Do not edit this file or all your changes will be lost after re-generation.
|
|
|
|
|
// </auto-generated>
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
using System; |
|
|
|
|
using System.Runtime.InteropServices; |
|
|
|
@ -47,9 +45,352 @@ namespace CppSharp
@@ -47,9 +45,352 @@ namespace CppSharp
|
|
|
|
|
User = 4 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public unsafe abstract partial class AbstractModule : IDisposable |
|
|
|
|
{ |
|
|
|
|
[StructLayout(LayoutKind.Explicit, Size = 104)] |
|
|
|
|
public partial struct Internal |
|
|
|
|
{ |
|
|
|
|
[FieldOffset(0)] |
|
|
|
|
public global::System.IntPtr vfptr0; |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModuleC2Ev")] |
|
|
|
|
internal static extern void ctor_0(global::System.IntPtr instance); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModuleC2ERKS1_")] |
|
|
|
|
internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule14getIncludeDirsEj")] |
|
|
|
|
internal static extern global::System.IntPtr getIncludeDirs_0(global::System.IntPtr instance, uint i); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule14addIncludeDirsEPKc")] |
|
|
|
|
internal static extern void addIncludeDirs_0(global::System.IntPtr instance, global::System.IntPtr s); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule16clearIncludeDirsEv")] |
|
|
|
|
internal static extern void clearIncludeDirs_0(global::System.IntPtr instance); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule14getLibraryDirsEj")] |
|
|
|
|
internal static extern global::System.IntPtr getLibraryDirs_0(global::System.IntPtr instance, uint i); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule14addLibraryDirsEPKc")] |
|
|
|
|
internal static extern void addLibraryDirs_0(global::System.IntPtr instance, global::System.IntPtr s); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule16clearLibraryDirsEv")] |
|
|
|
|
internal static extern void clearLibraryDirs_0(global::System.IntPtr instance); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule10getDefinesEj")] |
|
|
|
|
internal static extern global::System.IntPtr getDefines_0(global::System.IntPtr instance, uint i); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule10addDefinesEPKc")] |
|
|
|
|
internal static extern void addDefines_0(global::System.IntPtr instance, global::System.IntPtr s); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule12clearDefinesEv")] |
|
|
|
|
internal static extern void clearDefines_0(global::System.IntPtr instance); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule12getUndefinesEj")] |
|
|
|
|
internal static extern global::System.IntPtr getUndefines_0(global::System.IntPtr instance, uint i); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule12addUndefinesEPKc")] |
|
|
|
|
internal static extern void addUndefines_0(global::System.IntPtr instance, global::System.IntPtr s); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule14clearUndefinesEv")] |
|
|
|
|
internal static extern void clearUndefines_0(global::System.IntPtr instance); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule19getIncludeDirsCountEv")] |
|
|
|
|
internal static extern uint getIncludeDirsCount_0(global::System.IntPtr instance); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule19getLibraryDirsCountEv")] |
|
|
|
|
internal static extern uint getLibraryDirsCount_0(global::System.IntPtr instance); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule15getDefinesCountEv")] |
|
|
|
|
internal static extern uint getDefinesCount_0(global::System.IntPtr instance); |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser14AbstractModule17getUndefinesCountEv")] |
|
|
|
|
internal static extern uint getUndefinesCount_0(global::System.IntPtr instance); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public global::System.IntPtr __Instance { get; protected set; } |
|
|
|
|
|
|
|
|
|
protected int __PointerAdjustment; |
|
|
|
|
public static readonly System.Collections.Concurrent.ConcurrentDictionary<IntPtr, AbstractModule> NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary<IntPtr, AbstractModule>(); |
|
|
|
|
protected void*[] __OriginalVTables; |
|
|
|
|
|
|
|
|
|
protected bool __ownsNativeInstance; |
|
|
|
|
|
|
|
|
|
public static AbstractModule __CreateInstance(global::System.IntPtr native, bool skipVTables = false) |
|
|
|
|
{ |
|
|
|
|
return new AbstractModuleInternal(native.ToPointer(), skipVTables); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static AbstractModule __CreateInstance(AbstractModule.Internal native, bool skipVTables = false) |
|
|
|
|
{ |
|
|
|
|
return new AbstractModuleInternal(native, skipVTables); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected AbstractModule(void* native, bool skipVTables = false) |
|
|
|
|
{ |
|
|
|
|
if (native == null) |
|
|
|
|
return; |
|
|
|
|
__Instance = new global::System.IntPtr(native); |
|
|
|
|
if (skipVTables) |
|
|
|
|
__OriginalVTables = new void*[] { ((Internal*) native)->vfptr0.ToPointer() }; |
|
|
|
|
else |
|
|
|
|
SetupVTables(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected AbstractModule() |
|
|
|
|
{ |
|
|
|
|
__Instance = Marshal.AllocHGlobal(104); |
|
|
|
|
__ownsNativeInstance = true; |
|
|
|
|
NativeToManagedMap[__Instance] = this; |
|
|
|
|
Internal.ctor_0((__Instance + __PointerAdjustment)); |
|
|
|
|
SetupVTables(GetType().FullName == "CppSharp.CppParser.dll.CppSharp.Parser.AbstractModule"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected AbstractModule(CppSharp.Parser.AbstractModule _0) |
|
|
|
|
{ |
|
|
|
|
__Instance = Marshal.AllocHGlobal(104); |
|
|
|
|
__ownsNativeInstance = true; |
|
|
|
|
NativeToManagedMap[__Instance] = this; |
|
|
|
|
if (ReferenceEquals(_0, null)) |
|
|
|
|
throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); |
|
|
|
|
var arg0 = _0.__Instance; |
|
|
|
|
Internal.cctor_1((__Instance + __PointerAdjustment), arg0); |
|
|
|
|
SetupVTables(GetType().FullName == "CppSharp.CppParser.dll.CppSharp.Parser.AbstractModule"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void Dispose() |
|
|
|
|
{ |
|
|
|
|
Dispose(disposing: true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected virtual void Dispose(bool disposing) |
|
|
|
|
{ |
|
|
|
|
CppSharp.Parser.AbstractModule __dummy; |
|
|
|
|
NativeToManagedMap.TryRemove(__Instance, out __dummy); |
|
|
|
|
((Internal*) __Instance)->vfptr0 = new global::System.IntPtr(__OriginalVTables[0]); |
|
|
|
|
if (__ownsNativeInstance) |
|
|
|
|
Marshal.FreeHGlobal(__Instance); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public string getIncludeDirs(uint i) |
|
|
|
|
{ |
|
|
|
|
var __ret = Internal.getIncludeDirs_0((__Instance + __PointerAdjustment), i); |
|
|
|
|
return Marshal.PtrToStringAnsi(__ret); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addIncludeDirs(string s) |
|
|
|
|
{ |
|
|
|
|
var arg0 = Marshal.StringToHGlobalAnsi(s); |
|
|
|
|
Internal.addIncludeDirs_0((__Instance + __PointerAdjustment), arg0); |
|
|
|
|
Marshal.FreeHGlobal(arg0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void clearIncludeDirs() |
|
|
|
|
{ |
|
|
|
|
Internal.clearIncludeDirs_0((__Instance + __PointerAdjustment)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public string getLibraryDirs(uint i) |
|
|
|
|
{ |
|
|
|
|
var __ret = Internal.getLibraryDirs_0((__Instance + __PointerAdjustment), i); |
|
|
|
|
return Marshal.PtrToStringAnsi(__ret); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addLibraryDirs(string s) |
|
|
|
|
{ |
|
|
|
|
var arg0 = Marshal.StringToHGlobalAnsi(s); |
|
|
|
|
Internal.addLibraryDirs_0((__Instance + __PointerAdjustment), arg0); |
|
|
|
|
Marshal.FreeHGlobal(arg0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void clearLibraryDirs() |
|
|
|
|
{ |
|
|
|
|
Internal.clearLibraryDirs_0((__Instance + __PointerAdjustment)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public string getDefines(uint i) |
|
|
|
|
{ |
|
|
|
|
var __ret = Internal.getDefines_0((__Instance + __PointerAdjustment), i); |
|
|
|
|
return Marshal.PtrToStringAnsi(__ret); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addDefines(string s) |
|
|
|
|
{ |
|
|
|
|
var arg0 = Marshal.StringToHGlobalAnsi(s); |
|
|
|
|
Internal.addDefines_0((__Instance + __PointerAdjustment), arg0); |
|
|
|
|
Marshal.FreeHGlobal(arg0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void clearDefines() |
|
|
|
|
{ |
|
|
|
|
Internal.clearDefines_0((__Instance + __PointerAdjustment)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public string getUndefines(uint i) |
|
|
|
|
{ |
|
|
|
|
var __ret = Internal.getUndefines_0((__Instance + __PointerAdjustment), i); |
|
|
|
|
return Marshal.PtrToStringAnsi(__ret); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addUndefines(string s) |
|
|
|
|
{ |
|
|
|
|
var arg0 = Marshal.StringToHGlobalAnsi(s); |
|
|
|
|
Internal.addUndefines_0((__Instance + __PointerAdjustment), arg0); |
|
|
|
|
Marshal.FreeHGlobal(arg0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void clearUndefines() |
|
|
|
|
{ |
|
|
|
|
Internal.clearUndefines_0((__Instance + __PointerAdjustment)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public uint IncludeDirsCount |
|
|
|
|
{ |
|
|
|
|
get |
|
|
|
|
{ |
|
|
|
|
var __ret = Internal.getIncludeDirsCount_0((__Instance + __PointerAdjustment)); |
|
|
|
|
return __ret; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public uint LibraryDirsCount |
|
|
|
|
{ |
|
|
|
|
get |
|
|
|
|
{ |
|
|
|
|
var __ret = Internal.getLibraryDirsCount_0((__Instance + __PointerAdjustment)); |
|
|
|
|
return __ret; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public uint DefinesCount |
|
|
|
|
{ |
|
|
|
|
get |
|
|
|
|
{ |
|
|
|
|
var __ret = Internal.getDefinesCount_0((__Instance + __PointerAdjustment)); |
|
|
|
|
return __ret; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public uint UndefinesCount |
|
|
|
|
{ |
|
|
|
|
get |
|
|
|
|
{ |
|
|
|
|
var __ret = Internal.getUndefinesCount_0((__Instance + __PointerAdjustment)); |
|
|
|
|
return __ret; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#region Virtual table interop
|
|
|
|
|
|
|
|
|
|
// virtual ~AbstractModule() = 0
|
|
|
|
|
private static Delegates.Action_IntPtr _dtor_0DelegateInstance; |
|
|
|
|
|
|
|
|
|
private static void _dtor_0DelegateHook(global::System.IntPtr instance) |
|
|
|
|
{ |
|
|
|
|
if (!NativeToManagedMap.ContainsKey(instance)) |
|
|
|
|
throw new global::System.Exception("No managed instance was found"); |
|
|
|
|
|
|
|
|
|
var __target = (AbstractModule) NativeToManagedMap[instance]; |
|
|
|
|
if (__target.__ownsNativeInstance) |
|
|
|
|
__target.SetupVTables(); |
|
|
|
|
__target.Dispose(false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void*[] __ManagedVTables; |
|
|
|
|
private static void*[] __ManagedVTablesDtorOnly; |
|
|
|
|
private static void*[] _Thunks; |
|
|
|
|
|
|
|
|
|
private void SetupVTables(bool destructorOnly = false) |
|
|
|
|
{ |
|
|
|
|
if (__OriginalVTables != null) |
|
|
|
|
return; |
|
|
|
|
var native = (Internal*) __Instance.ToPointer(); |
|
|
|
|
|
|
|
|
|
__OriginalVTables = new void*[] { ((Internal*) native)->vfptr0.ToPointer() }; |
|
|
|
|
|
|
|
|
|
if (_Thunks == null) |
|
|
|
|
{ |
|
|
|
|
_Thunks = new void*[1]; |
|
|
|
|
_dtor_0DelegateInstance += _dtor_0DelegateHook; |
|
|
|
|
_Thunks[0] = Marshal.GetFunctionPointerForDelegate(_dtor_0DelegateInstance).ToPointer(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (destructorOnly) |
|
|
|
|
{ |
|
|
|
|
if (__ManagedVTablesDtorOnly == null) |
|
|
|
|
{ |
|
|
|
|
__ManagedVTablesDtorOnly = new void*[1]; |
|
|
|
|
var vtptr = Marshal.AllocHGlobal(4 * 8); |
|
|
|
|
var vfptr0 = vtptr + 2 * 8; |
|
|
|
|
__ManagedVTablesDtorOnly[0] = vfptr0.ToPointer(); |
|
|
|
|
*(void**)(vfptr0 + -16) = *(void**)(native->vfptr0 + -16); |
|
|
|
|
*(void**)(vfptr0 + -8) = *(void**)(native->vfptr0 + -8); |
|
|
|
|
*(void**)(vfptr0 + 0) = *(void**)(native->vfptr0 + 0); |
|
|
|
|
*(void**)(vfptr0 + 8) = _Thunks[0]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
native->vfptr0 = new IntPtr(__ManagedVTablesDtorOnly[0]); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
if (__ManagedVTables == null) |
|
|
|
|
{ |
|
|
|
|
__ManagedVTables = new void*[1]; |
|
|
|
|
var vtptr = Marshal.AllocHGlobal(4 * 8); |
|
|
|
|
var vfptr0 = vtptr + 2 * 8; |
|
|
|
|
__ManagedVTables[0] = vfptr0.ToPointer(); |
|
|
|
|
*(void**)(vfptr0 + -16) = *(void**)(native->vfptr0 + -16); |
|
|
|
|
*(void**)(vfptr0 + -8) = *(void**)(native->vfptr0 + -8); |
|
|
|
|
*(void**)(vfptr0 + 0) = *(void**)(native->vfptr0 + 0); |
|
|
|
|
*(void**)(vfptr0 + 8) = _Thunks[0]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
native->vfptr0 = new IntPtr(__ManagedVTables[0]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public unsafe partial class ParserOptions : IDisposable |
|
|
|
|
{ |
|
|
|
|
[StructLayout(LayoutKind.Explicit, Size = 232)] |
|
|
|
|
[StructLayout(LayoutKind.Explicit, Size = 240)] |
|
|
|
|
public partial struct Internal |
|
|
|
|
{ |
|
|
|
|
[FieldOffset(168)] |
|
|
|
@ -79,6 +420,9 @@ namespace CppSharp
@@ -79,6 +420,9 @@ namespace CppSharp
|
|
|
|
|
[FieldOffset(224)] |
|
|
|
|
public global::System.IntPtr TargetInfo; |
|
|
|
|
|
|
|
|
|
[FieldOffset(232)] |
|
|
|
|
public global::System.IntPtr Module; |
|
|
|
|
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
EntryPoint="_ZN8CppSharp9CppParser13ParserOptionsC2Ev")] |
|
|
|
@ -255,7 +599,7 @@ namespace CppSharp
@@ -255,7 +599,7 @@ namespace CppSharp
|
|
|
|
|
|
|
|
|
|
private static void* __CopyValue(ParserOptions.Internal native) |
|
|
|
|
{ |
|
|
|
|
var ret = Marshal.AllocHGlobal(232); |
|
|
|
|
var ret = Marshal.AllocHGlobal(240); |
|
|
|
|
CppSharp.Parser.ParserOptions.Internal.cctor_2(ret, new global::System.IntPtr(&native)); |
|
|
|
|
return ret.ToPointer(); |
|
|
|
|
} |
|
|
|
@ -276,7 +620,7 @@ namespace CppSharp
@@ -276,7 +620,7 @@ namespace CppSharp
|
|
|
|
|
|
|
|
|
|
public ParserOptions() |
|
|
|
|
{ |
|
|
|
|
__Instance = Marshal.AllocHGlobal(232); |
|
|
|
|
__Instance = Marshal.AllocHGlobal(240); |
|
|
|
|
__ownsNativeInstance = true; |
|
|
|
|
NativeToManagedMap[__Instance] = this; |
|
|
|
|
Internal.ctor_0((__Instance + __PointerAdjustment)); |
|
|
|
@ -284,7 +628,7 @@ namespace CppSharp
@@ -284,7 +628,7 @@ namespace CppSharp
|
|
|
|
|
|
|
|
|
|
public ParserOptions(CppSharp.Parser.ParserOptions _0) |
|
|
|
|
{ |
|
|
|
|
__Instance = Marshal.AllocHGlobal(232); |
|
|
|
|
__Instance = Marshal.AllocHGlobal(240); |
|
|
|
|
__ownsNativeInstance = true; |
|
|
|
|
NativeToManagedMap[__Instance] = this; |
|
|
|
|
if (ReferenceEquals(_0, null)) |
|
|
|
@ -627,6 +971,24 @@ namespace CppSharp
@@ -627,6 +971,24 @@ namespace CppSharp
|
|
|
|
|
((Internal*) __Instance)->TargetInfo = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public CppSharp.Parser.AbstractModule Module |
|
|
|
|
{ |
|
|
|
|
get |
|
|
|
|
{ |
|
|
|
|
CppSharp.Parser.AbstractModule __result0; |
|
|
|
|
if (((Internal*) __Instance)->Module == IntPtr.Zero) __result0 = null; |
|
|
|
|
else if (CppSharp.Parser.AbstractModule.NativeToManagedMap.ContainsKey(((Internal*) __Instance)->Module)) |
|
|
|
|
__result0 = (CppSharp.Parser.AbstractModule) CppSharp.Parser.AbstractModule.NativeToManagedMap[((Internal*) __Instance)->Module]; |
|
|
|
|
else CppSharp.Parser.AbstractModule.NativeToManagedMap[((Internal*) __Instance)->Module] = __result0 = (CppSharp.Parser.AbstractModule) CppSharp.Parser.AbstractModule.__CreateInstance(((Internal*) __Instance)->Module); |
|
|
|
|
return __result0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
set |
|
|
|
|
{ |
|
|
|
|
((Internal*) __Instance)->Module = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public unsafe partial class ParserDiagnostic : IDisposable |
|
|
|
@ -1156,5 +1518,30 @@ namespace CppSharp
@@ -1156,5 +1518,30 @@ namespace CppSharp
|
|
|
|
|
return __result0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
internal unsafe partial class AbstractModuleInternal : CppSharp.Parser.AbstractModule, IDisposable |
|
|
|
|
{ |
|
|
|
|
private static void* __CopyValue(AbstractModule.Internal native) |
|
|
|
|
{ |
|
|
|
|
var ret = Marshal.AllocHGlobal(104); |
|
|
|
|
*(AbstractModule.Internal*) ret = native; |
|
|
|
|
return ret.ToPointer(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
internal AbstractModuleInternal(AbstractModule.Internal native, bool skipVTables = false) |
|
|
|
|
: this(__CopyValue(native), skipVTables) |
|
|
|
|
{ |
|
|
|
|
__ownsNativeInstance = true; |
|
|
|
|
NativeToManagedMap[__Instance] = this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
internal AbstractModuleInternal(void* native, bool skipVTables = false) |
|
|
|
|
: base((void*) null) |
|
|
|
|
{ |
|
|
|
|
__PointerAdjustment = 0; |
|
|
|
|
__Instance = new global::System.IntPtr(native); |
|
|
|
|
__OriginalVTables = new void*[] { ((Internal*) native)->vfptr0.ToPointer() }; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|