Browse Source

Regenerated the parser bindings.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/864/head
Dimitar Dobrev 8 years ago
parent
commit
6c59014d7a
  1. 654
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs
  2. 55
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs
  3. 510
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs
  4. 21
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs
  5. 654
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs
  6. 55
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs
  7. 654
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs
  8. 34
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs
  9. 612
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs
  10. 34
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs
  11. 510
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs
  12. 21
      src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs

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

File diff suppressed because it is too large Load Diff

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

@ -133,13 +133,6 @@ namespace Std
{ {
namespace __1 namespace __1
{ {
namespace Tuple
{
[StructLayout(LayoutKind.Explicit, Size = 0)]
public unsafe partial struct __Internal
{
}
}
} }
} }
@ -1234,24 +1227,6 @@ namespace Std
{ {
namespace __1 namespace __1
{ {
namespace Map
{
[StructLayout(LayoutKind.Explicit, Size = 12)]
public unsafe partial struct __Internal
{
[FieldOffset(0)]
internal global::Std.__1.Tree.__Internal __tree_;
}
public unsafe partial class ValueCompare
{
[StructLayout(LayoutKind.Explicit, Size = 0)]
public partial struct __Internal
{
}
}
}
} }
} }
@ -1268,10 +1243,6 @@ namespace Std
[StructLayout(LayoutKind.Explicit, Size = 0)] [StructLayout(LayoutKind.Explicit, Size = 0)]
public unsafe partial struct __Internal public unsafe partial struct __Internal
{ {
[SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt3__111char_traitsIcE3eofEv")]
internal static extern int Eofc__N_std_N___1_S_char_traits__C_0();
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -1313,13 +1284,6 @@ namespace Std
__Instance = new global::System.IntPtr(native); __Instance = new global::System.IntPtr(native);
} }
public CharTraits()
{
__Instance = Marshal.AllocHGlobal(sizeof(global::Std.__1.CharTraits.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
public void Dispose() public void Dispose()
{ {
Dispose(disposing: true); Dispose(disposing: true);
@ -1335,12 +1299,6 @@ namespace Std
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public static int Eof()
{
var __ret = global::Std.__1.CharTraits.__Internal.Eofc__N_std_N___1_S_char_traits__C_0();
return __ret;
}
} }
public unsafe partial class BasicString : IDisposable public unsafe partial class BasicString : IDisposable
@ -1354,7 +1312,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", 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 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); 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(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -1530,19 +1488,16 @@ 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.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)); 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((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public string CStr public string CStr()
{ {
get 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);
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);
}
} }
} }

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

File diff suppressed because it is too large Load Diff

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

@ -62,10 +62,6 @@ namespace Std
[StructLayout(LayoutKind.Explicit, Size = 0)] [StructLayout(LayoutKind.Explicit, Size = 0)]
public unsafe partial struct __Internal public unsafe partial struct __Internal
{ {
[SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="?eof@?$char_traits@D@std@@SAHXZ")]
internal static extern int Eofc__N_std_S_char_traits__C_0();
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -107,13 +103,6 @@ namespace Std
__Instance = new global::System.IntPtr(native); __Instance = new global::System.IntPtr(native);
} }
public CharTraits()
{
__Instance = Marshal.AllocHGlobal(sizeof(global::Std.CharTraits.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
public void Dispose() public void Dispose()
{ {
Dispose(disposing: true); Dispose(disposing: true);
@ -129,12 +118,6 @@ namespace Std
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public static int Eof()
{
var __ret = global::Std.CharTraits.__Internal.Eofc__N_std_S_char_traits__C_0();
return __ret;
}
} }
} }
@ -576,7 +559,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("Std-symbols", 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 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); internal static extern void dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr instance, int delete);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
@ -635,7 +618,7 @@ 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.dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_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((__Instance + __PointerAdjustment), 0);
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;

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

File diff suppressed because it is too large Load Diff

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

@ -133,13 +133,6 @@ namespace Std
{ {
namespace __1 namespace __1
{ {
namespace Tuple
{
[StructLayout(LayoutKind.Explicit, Size = 0)]
public unsafe partial struct __Internal
{
}
}
} }
} }
@ -1234,24 +1227,6 @@ namespace Std
{ {
namespace __1 namespace __1
{ {
namespace Map
{
[StructLayout(LayoutKind.Explicit, Size = 24)]
public unsafe partial struct __Internal
{
[FieldOffset(0)]
internal global::Std.__1.Tree.__Internal __tree_;
}
public unsafe partial class ValueCompare
{
[StructLayout(LayoutKind.Explicit, Size = 0)]
public partial struct __Internal
{
}
}
}
} }
} }
@ -1268,10 +1243,6 @@ namespace Std
[StructLayout(LayoutKind.Explicit, Size = 0)] [StructLayout(LayoutKind.Explicit, Size = 0)]
public unsafe partial struct __Internal public unsafe partial struct __Internal
{ {
[SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt3__111char_traitsIcE3eofEv")]
internal static extern int Eofc__N_std_N___1_S_char_traits__C_0();
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -1313,13 +1284,6 @@ namespace Std
__Instance = new global::System.IntPtr(native); __Instance = new global::System.IntPtr(native);
} }
public CharTraits()
{
__Instance = Marshal.AllocHGlobal(sizeof(global::Std.__1.CharTraits.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
public void Dispose() public void Dispose()
{ {
Dispose(disposing: true); Dispose(disposing: true);
@ -1335,12 +1299,6 @@ namespace Std
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public static int Eof()
{
var __ret = global::Std.__1.CharTraits.__Internal.Eofc__N_std_N___1_S_char_traits__C_0();
return __ret;
}
} }
public unsafe partial class BasicString : IDisposable public unsafe partial class BasicString : IDisposable
@ -1354,7 +1312,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", 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 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); 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(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -1530,19 +1488,16 @@ 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.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)); 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((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public string CStr public string CStr()
{ {
get 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);
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);
}
} }
} }

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

File diff suppressed because it is too large Load Diff

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

@ -52,7 +52,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSaIcED2Ev")] EntryPoint="_ZNSaIcED2Ev")]
internal static extern void dtorc__N_std_S_allocator__C_0(global::System.IntPtr instance); internal static extern void dtorc__N_std_S_allocator__C(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -114,7 +114,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.dtorc__N_std_S_allocator__C_0((__Instance + __PointerAdjustment)); global::Std.Allocator.__Internal.dtorc__N_std_S_allocator__C((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
@ -342,10 +342,6 @@ namespace Std
[StructLayout(LayoutKind.Explicit, Size = 0)] [StructLayout(LayoutKind.Explicit, Size = 0)]
public unsafe partial struct __Internal public unsafe partial struct __Internal
{ {
[SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt11char_traitsIcE3eofEv")]
internal static extern int Eofc__N_std_S_char_traits__C_0();
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -387,13 +383,6 @@ namespace Std
__Instance = new global::System.IntPtr(native); __Instance = new global::System.IntPtr(native);
} }
public CharTraits()
{
__Instance = Marshal.AllocHGlobal(sizeof(global::Std.CharTraits.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
public void Dispose() public void Dispose()
{ {
Dispose(disposing: true); Dispose(disposing: true);
@ -409,12 +398,6 @@ namespace Std
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public static int Eof()
{
var __ret = global::Std.CharTraits.__Internal.Eofc__N_std_S_char_traits__C_0();
return __ret;
}
} }
} }
@ -665,7 +648,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev")] EntryPoint="_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev")]
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); internal static extern void dtorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -752,19 +735,16 @@ 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.dtorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_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((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public string CStr public string CStr()
{ {
get 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);
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);
}
} }
} }

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

File diff suppressed because it is too large Load Diff

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

@ -52,7 +52,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSaIcED2Ev")] EntryPoint="_ZNSaIcED2Ev")]
internal static extern void dtorc__N_std_S_allocator__C_0(global::System.IntPtr instance); internal static extern void dtorc__N_std_S_allocator__C(global::System.IntPtr instance);
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -114,7 +114,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.dtorc__N_std_S_allocator__C_0((__Instance + __PointerAdjustment)); global::Std.Allocator.__Internal.dtorc__N_std_S_allocator__C((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
@ -335,10 +335,6 @@ namespace Std
[StructLayout(LayoutKind.Explicit, Size = 0)] [StructLayout(LayoutKind.Explicit, Size = 0)]
public unsafe partial struct __Internal public unsafe partial struct __Internal
{ {
[SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSt11char_traitsIcE3eofEv")]
internal static extern int Eofc__N_std_S_char_traits__C_0();
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -380,13 +376,6 @@ namespace Std
__Instance = new global::System.IntPtr(native); __Instance = new global::System.IntPtr(native);
} }
public CharTraits()
{
__Instance = Marshal.AllocHGlobal(sizeof(global::Std.CharTraits.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
public void Dispose() public void Dispose()
{ {
Dispose(disposing: true); Dispose(disposing: true);
@ -402,12 +391,6 @@ namespace Std
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public static int Eof()
{
var __ret = global::Std.CharTraits.__Internal.Eofc__N_std_S_char_traits__C_0();
return __ret;
}
} }
} }
@ -642,7 +625,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZNSsD2Ev")] EntryPoint="_ZNSsD2Ev")]
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); internal static extern void dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -743,19 +726,16 @@ 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.dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_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((__Instance + __PointerAdjustment));
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public string CStr public string CStr()
{ {
get 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);
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);
}
} }
} }

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

File diff suppressed because it is too large Load Diff

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

@ -62,10 +62,6 @@ namespace Std
[StructLayout(LayoutKind.Explicit, Size = 0)] [StructLayout(LayoutKind.Explicit, Size = 0)]
public unsafe partial struct __Internal public unsafe partial struct __Internal
{ {
[SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="?eof@?$char_traits@D@std@@SAHXZ")]
internal static extern int Eofc__N_std_S_char_traits__C_0();
} }
public global::System.IntPtr __Instance { get; protected set; } public global::System.IntPtr __Instance { get; protected set; }
@ -107,13 +103,6 @@ namespace Std
__Instance = new global::System.IntPtr(native); __Instance = new global::System.IntPtr(native);
} }
public CharTraits()
{
__Instance = Marshal.AllocHGlobal(sizeof(global::Std.CharTraits.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
public void Dispose() public void Dispose()
{ {
Dispose(disposing: true); Dispose(disposing: true);
@ -129,12 +118,6 @@ namespace Std
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;
} }
public static int Eof()
{
var __ret = global::Std.CharTraits.__Internal.Eofc__N_std_S_char_traits__C_0();
return __ret;
}
} }
} }
@ -586,7 +569,7 @@ namespace Std
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", 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 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); internal static extern void dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr instance, int delete);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -645,7 +628,7 @@ 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.dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C_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((__Instance + __PointerAdjustment), 0);
if (__ownsNativeInstance) if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance); Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero; __Instance = IntPtr.Zero;

Loading…
Cancel
Save