Browse Source

Regenerated the parser bindings to use the new dynamic allocation of memory in C#.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/778/head
Dimitar Dobrev 8 years ago
parent
commit
af6e2ec194
  1. 570
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs
  2. 6
      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. 6
      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. 6
      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. 6
      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. 6
      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. 6
      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

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

@ -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(0); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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,7 +199,7 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(0); __Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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.ctor_0((__Instance + __PointerAdjustment));
@ -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(12); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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();
} }

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

File diff suppressed because it is too large Load Diff

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

@ -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(0); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal)));
*(global::Std.Allocator.__Internal*) ret = native; *(global::Std.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -443,7 +443,7 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(0); __Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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.ctor_0((__Instance + __PointerAdjustment));
@ -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(24); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.BasicString.__Internal)));
*(global::Std.BasicString.__Internal*) ret = native; *(global::Std.BasicString.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }

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

File diff suppressed because it is too large Load Diff

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

@ -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(0); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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,7 +199,7 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(0); __Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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.ctor_0((__Instance + __PointerAdjustment));
@ -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(24); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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();
} }

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

File diff suppressed because it is too large Load Diff

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

@ -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(0); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal)));
*(global::Std.Allocator.__Internal*) ret = native; *(global::Std.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -96,7 +96,7 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(0); __Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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.ctor_0((__Instance + __PointerAdjustment));
@ -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(32); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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();
} }

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

File diff suppressed because it is too large Load Diff

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

@ -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(0); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal)));
*(global::Std.Allocator.__Internal*) ret = native; *(global::Std.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -96,7 +96,7 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(0); __Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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.ctor_0((__Instance + __PointerAdjustment));
@ -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(8); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.BasicString.__Internal)));
*(global::Std.BasicString.__Internal*) ret = native; *(global::Std.BasicString.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }

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

File diff suppressed because it is too large Load Diff

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

@ -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(0); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal)));
*(global::Std.Allocator.__Internal*) ret = native; *(global::Std.Allocator.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }
@ -443,7 +443,7 @@ namespace Std
public Allocator() public Allocator()
{ {
__Instance = Marshal.AllocHGlobal(0); __Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(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.ctor_0((__Instance + __PointerAdjustment));
@ -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(32); var ret = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.BasicString.__Internal)));
*(global::Std.BasicString.__Internal*) ret = native; *(global::Std.BasicString.__Internal*) ret = native;
return ret.ToPointer(); return ret.ToPointer();
} }

Loading…
Cancel
Save