Browse Source

Regenerated the parser bindings with the optimisation when allocating.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/787/head
Dimitar Dobrev 8 years ago
parent
commit
5e5e1d0f11
  1. 570
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs
  2. 18
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs
  3. 570
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs
  4. 18
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs
  5. 570
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs
  6. 18
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs
  7. 570
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs
  8. 22
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs
  9. 570
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs
  10. 22
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs
  11. 570
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs
  12. 18
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs

570
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs

File diff suppressed because it is too large Load Diff

18
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs

@ -155,7 +155,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt3__19allocatorIcEC2Ev")] EntryPoint="_ZNSt3__19allocatorIcEC2Ev")]
internal static extern void ctor_0(global::System.IntPtr instance); internal static extern void ctorc__N_std_N___1_S_allocator__C_0(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -178,7 +178,7 @@ namespace Std
private static void* __CopyValue(global::Std.__1.Allocator.__Internal native) private static void* __CopyValue(global::Std.__1.Allocator.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.__1.Allocator.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.__1.Allocator.__Internal));
*(global::Std.__1.Allocator.__Internal*) ret = native; *(global::Std.__1.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -199,10 +199,10 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.__1.Allocator.__Internal))); __Instance = Marshal.AllocHGlobal(sizeof(global::Std.__1.Allocator.__Internal));
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
global::Std.__1.Allocator.__Internal.ctor_0((__Instance + __PointerAdjustment)); global::Std.__1.Allocator.__Internal.ctorc__N_std_N___1_S_allocator__C_0((__Instance + __PointerAdjustment));
} }
public void Dispose() public void Dispose()
@ -1271,12 +1271,12 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev")] EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev")]
internal static extern void dtor_0(global::System.IntPtr instance); internal static extern void dtorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5c_strEv")] EntryPoint="_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5c_strEv")]
internal static extern global::System.IntPtr CStr_0(global::System.IntPtr instance); internal static extern global::System.IntPtr CStrc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_0(global::System.IntPtr instance);
} }
internal enum ShortMask : uint internal enum ShortMask : uint
@ -1416,7 +1416,7 @@ namespace Std
private static void* __CopyValue(global::Std.__1.BasicString.__Internal native) private static void* __CopyValue(global::Std.__1.BasicString.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.__1.BasicString.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.__1.BasicString.__Internal));
*(global::Std.__1.BasicString.__Internal*) ret = native; *(global::Std.__1.BasicString.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -1445,7 +1445,7 @@ namespace Std
global::Std.__1.BasicString __dummy; global::Std.__1.BasicString __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy); NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (disposing) if (disposing)
global::Std.__1.BasicString.__Internal.dtor_0((__Instance + __PointerAdjustment)); global::Std.__1.BasicString.__Internal.dtorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_0((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
} }
@ -1454,7 +1454,7 @@ namespace Std
{ {
get get
{ {
var __ret = global::Std.__1.BasicString.__Internal.CStr_0((__Instance + __PointerAdjustment)); var __ret = global::Std.__1.BasicString.__Internal.CStrc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_0((__Instance + __PointerAdjustment));
return Marshal.PtrToStringAnsi(__ret); return Marshal.PtrToStringAnsi(__ret);
} }
} }

570
src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs

File diff suppressed because it is too large Load Diff

18
src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs

@ -399,7 +399,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0?$allocator@D@std@@QAE@XZ")] EntryPoint="??0?$allocator@D@std@@QAE@XZ")]
internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); internal static extern global::System.IntPtr ctorc__N_std_S_allocator__C_0(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -422,7 +422,7 @@ namespace Std
private static void* __CopyValue(global::Std.Allocator.__Internal native) private static void* __CopyValue(global::Std.Allocator.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal));
*(global::Std.Allocator.__Internal*) ret = native; *(global::Std.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -443,10 +443,10 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal))); __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal));
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
global::Std.Allocator.__Internal.ctor_0((__Instance + __PointerAdjustment)); global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
} }
public void Dispose() public void Dispose()
@ -490,12 +490,12 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ")] EntryPoint="??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ")]
internal static extern void dtor_0(global::System.IntPtr instance, int delete); internal static extern void dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0(global::System.IntPtr instance, int delete);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ")] EntryPoint="?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ")]
internal static extern global::System.IntPtr CStr_0(global::System.IntPtr instance); internal static extern global::System.IntPtr CStrc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -518,7 +518,7 @@ namespace Std
private static void* __CopyValue(global::Std.BasicString.__Internal native) private static void* __CopyValue(global::Std.BasicString.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.BasicString.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internal));
*(global::Std.BasicString.__Internal*) ret = native; *(global::Std.BasicString.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -547,14 +547,14 @@ namespace Std
global::Std.BasicString __dummy; global::Std.BasicString __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy); NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (disposing) if (disposing)
global::Std.BasicString.__Internal.dtor_0((__Instance + __PointerAdjustment), 0); global::Std.BasicString.__Internal.dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0((__Instance + __PointerAdjustment), 0);
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
} }
public string CStr() public string CStr()
{ {
var __ret = global::Std.BasicString.__Internal.CStr_0((__Instance + __PointerAdjustment)); var __ret = global::Std.BasicString.__Internal.CStrc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
return Marshal.PtrToStringAnsi(__ret); return Marshal.PtrToStringAnsi(__ret);
} }
} }

570
src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs

File diff suppressed because it is too large Load Diff

18
src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs

@ -155,7 +155,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt3__19allocatorIcEC2Ev")] EntryPoint="_ZNSt3__19allocatorIcEC2Ev")]
internal static extern void ctor_0(global::System.IntPtr instance); internal static extern void ctorc__N_std_N___1_S_allocator__C_0(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -178,7 +178,7 @@ namespace Std
private static void* __CopyValue(global::Std.__1.Allocator.__Internal native) private static void* __CopyValue(global::Std.__1.Allocator.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.__1.Allocator.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.__1.Allocator.__Internal));
*(global::Std.__1.Allocator.__Internal*) ret = native; *(global::Std.__1.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -199,10 +199,10 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.__1.Allocator.__Internal))); __Instance = Marshal.AllocHGlobal(sizeof(global::Std.__1.Allocator.__Internal));
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
global::Std.__1.Allocator.__Internal.ctor_0((__Instance + __PointerAdjustment)); global::Std.__1.Allocator.__Internal.ctorc__N_std_N___1_S_allocator__C_0((__Instance + __PointerAdjustment));
} }
public void Dispose() public void Dispose()
@ -1271,12 +1271,12 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev")] EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev")]
internal static extern void dtor_0(global::System.IntPtr instance); internal static extern void dtorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5c_strEv")] EntryPoint="_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5c_strEv")]
internal static extern global::System.IntPtr CStr_0(global::System.IntPtr instance); internal static extern global::System.IntPtr CStrc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_0(global::System.IntPtr instance);
} }
internal enum ShortMask : uint internal enum ShortMask : uint
@ -1416,7 +1416,7 @@ namespace Std
private static void* __CopyValue(global::Std.__1.BasicString.__Internal native) private static void* __CopyValue(global::Std.__1.BasicString.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.__1.BasicString.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.__1.BasicString.__Internal));
*(global::Std.__1.BasicString.__Internal*) ret = native; *(global::Std.__1.BasicString.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -1445,7 +1445,7 @@ namespace Std
global::Std.__1.BasicString __dummy; global::Std.__1.BasicString __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy); NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (disposing) if (disposing)
global::Std.__1.BasicString.__Internal.dtor_0((__Instance + __PointerAdjustment)); global::Std.__1.BasicString.__Internal.dtorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_0((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
} }
@ -1454,7 +1454,7 @@ namespace Std
{ {
get get
{ {
var __ret = global::Std.__1.BasicString.__Internal.CStr_0((__Instance + __PointerAdjustment)); var __ret = global::Std.__1.BasicString.__Internal.CStrc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_0((__Instance + __PointerAdjustment));
return Marshal.PtrToStringAnsi(__ret); return Marshal.PtrToStringAnsi(__ret);
} }
} }

570
src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs

File diff suppressed because it is too large Load Diff

22
src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs

@ -47,12 +47,12 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSaIcEC2Ev")] EntryPoint="_ZNSaIcEC2Ev")]
internal static extern void ctor_0(global::System.IntPtr instance); internal static extern void ctorc__N_std_S_allocator__C_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSaIcED2Ev")] EntryPoint="_ZNSaIcED2Ev")]
internal static extern void dtor_0(global::System.IntPtr instance); internal static extern void dtorc__N_std_S_allocator__C_0(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -75,7 +75,7 @@ namespace Std
private static void* __CopyValue(global::Std.Allocator.__Internal native) private static void* __CopyValue(global::Std.Allocator.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal));
*(global::Std.Allocator.__Internal*) ret = native; *(global::Std.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -96,10 +96,10 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal))); __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal));
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
global::Std.Allocator.__Internal.ctor_0((__Instance + __PointerAdjustment)); global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
} }
public void Dispose() public void Dispose()
@ -112,7 +112,7 @@ namespace Std
global::Std.Allocator __dummy; global::Std.Allocator __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy); NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (disposing) if (disposing)
global::Std.Allocator.__Internal.dtor_0((__Instance + __PointerAdjustment)); global::Std.Allocator.__Internal.dtorc__N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
} }
@ -579,12 +579,12 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev")] EntryPoint="_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev")]
internal static extern void dtor_0(global::System.IntPtr instance); internal static extern void dtorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv")] EntryPoint="_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv")]
internal static extern global::System.IntPtr CStr_0(global::System.IntPtr instance); internal static extern global::System.IntPtr CStrc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0(global::System.IntPtr instance);
} }
internal enum SLocalCapacity : uint internal enum SLocalCapacity : uint
@ -635,7 +635,7 @@ namespace Std
private static void* __CopyValue(global::Std.Cxx11.BasicString.__Internal native) private static void* __CopyValue(global::Std.Cxx11.BasicString.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Cxx11.BasicString.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.Cxx11.BasicString.__Internal));
*(global::Std.Cxx11.BasicString.__Internal*) ret = native; *(global::Std.Cxx11.BasicString.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -664,14 +664,14 @@ namespace Std
global::Std.Cxx11.BasicString __dummy; global::Std.Cxx11.BasicString __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy); NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (disposing) if (disposing)
global::Std.Cxx11.BasicString.__Internal.dtor_0((__Instance + __PointerAdjustment)); global::Std.Cxx11.BasicString.__Internal.dtorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
} }
public string CStr() public string CStr()
{ {
var __ret = global::Std.Cxx11.BasicString.__Internal.CStr_0((__Instance + __PointerAdjustment)); var __ret = global::Std.Cxx11.BasicString.__Internal.CStrc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
return Marshal.PtrToStringAnsi(__ret); return Marshal.PtrToStringAnsi(__ret);
} }
} }

570
src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs

File diff suppressed because it is too large Load Diff

22
src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs

@ -47,12 +47,12 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSaIcEC2Ev")] EntryPoint="_ZNSaIcEC2Ev")]
internal static extern void ctor_0(global::System.IntPtr instance); internal static extern void ctorc__N_std_S_allocator__C_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSaIcED2Ev")] EntryPoint="_ZNSaIcED2Ev")]
internal static extern void dtor_0(global::System.IntPtr instance); internal static extern void dtorc__N_std_S_allocator__C_0(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -75,7 +75,7 @@ namespace Std
private static void* __CopyValue(global::Std.Allocator.__Internal native) private static void* __CopyValue(global::Std.Allocator.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal));
*(global::Std.Allocator.__Internal*) ret = native; *(global::Std.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -96,10 +96,10 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal))); __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal));
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
global::Std.Allocator.__Internal.ctor_0((__Instance + __PointerAdjustment)); global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
} }
public void Dispose() public void Dispose()
@ -112,7 +112,7 @@ namespace Std
global::Std.Allocator __dummy; global::Std.Allocator __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy); NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (disposing) if (disposing)
global::Std.Allocator.__Internal.dtor_0((__Instance + __PointerAdjustment)); global::Std.Allocator.__Internal.dtorc__N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
} }
@ -556,12 +556,12 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSsD2Ev")] EntryPoint="_ZNSsD2Ev")]
internal static extern void dtor_0(global::System.IntPtr instance); internal static extern void dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNKSs5c_strEv")] EntryPoint="_ZNKSs5c_strEv")]
internal static extern global::System.IntPtr CStr_0(global::System.IntPtr instance); internal static extern global::System.IntPtr CStrc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0(global::System.IntPtr instance);
} }
public unsafe partial class AllocHider public unsafe partial class AllocHider
@ -626,7 +626,7 @@ namespace Std
private static void* __CopyValue(global::Std.BasicString.__Internal native) private static void* __CopyValue(global::Std.BasicString.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.BasicString.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internal));
*(global::Std.BasicString.__Internal*) ret = native; *(global::Std.BasicString.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -655,14 +655,14 @@ namespace Std
global::Std.BasicString __dummy; global::Std.BasicString __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy); NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (disposing) if (disposing)
global::Std.BasicString.__Internal.dtor_0((__Instance + __PointerAdjustment)); global::Std.BasicString.__Internal.dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
} }
public string CStr() public string CStr()
{ {
var __ret = global::Std.BasicString.__Internal.CStr_0((__Instance + __PointerAdjustment)); var __ret = global::Std.BasicString.__Internal.CStrc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
return Marshal.PtrToStringAnsi(__ret); return Marshal.PtrToStringAnsi(__ret);
} }
} }

570
src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs

File diff suppressed because it is too large Load Diff

18
src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs

@ -399,7 +399,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="??0?$allocator@D@std@@QEAA@XZ")] EntryPoint="??0?$allocator@D@std@@QEAA@XZ")]
internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); internal static extern global::System.IntPtr ctorc__N_std_S_allocator__C_0(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -422,7 +422,7 @@ namespace Std
private static void* __CopyValue(global::Std.Allocator.__Internal native) private static void* __CopyValue(global::Std.Allocator.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal));
*(global::Std.Allocator.__Internal*) ret = native; *(global::Std.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -443,10 +443,10 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal))); __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal));
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this; NativeToManagedMap[__Instance] = this;
global::Std.Allocator.__Internal.ctor_0((__Instance + __PointerAdjustment)); global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
} }
public void Dispose() public void Dispose()
@ -500,12 +500,12 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ")] EntryPoint="??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ")]
internal static extern void dtor_0(global::System.IntPtr instance, int delete); internal static extern void dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0(global::System.IntPtr instance, int delete);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ")] EntryPoint="?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ")]
internal static extern global::System.IntPtr CStr_0(global::System.IntPtr instance); internal static extern global::System.IntPtr CStrc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -528,7 +528,7 @@ namespace Std
private static void* __CopyValue(global::Std.BasicString.__Internal native) private static void* __CopyValue(global::Std.BasicString.__Internal native)
{ {
var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.BasicString.__Internal))); var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internal));
*(global::Std.BasicString.__Internal*) ret = native; *(global::Std.BasicString.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -557,14 +557,14 @@ namespace Std
global::Std.BasicString __dummy; global::Std.BasicString __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy); NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (disposing) if (disposing)
global::Std.BasicString.__Internal.dtor_0((__Instance + __PointerAdjustment), 0); global::Std.BasicString.__Internal.dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0((__Instance + __PointerAdjustment), 0);
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
} }
public string CStr() public string CStr()
{ {
var __ret = global::Std.BasicString.__Internal.CStr_0((__Instance + __PointerAdjustment)); var __ret = global::Std.BasicString.__Internal.CStrc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_0((__Instance + __PointerAdjustment));
return Marshal.PtrToStringAnsi(__ret); return Marshal.PtrToStringAnsi(__ret);
} }
} }

Loading…
Cancel
Save