|
|
|
@ -47,12 +47,12 @@ namespace Std
@@ -47,12 +47,12 @@ namespace Std
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
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] |
|
|
|
|
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
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; } |
|
|
|
@ -75,7 +75,7 @@ namespace Std
@@ -75,7 +75,7 @@ namespace Std
|
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
return ret.ToPointer(); |
|
|
|
|
} |
|
|
|
@ -96,10 +96,10 @@ namespace Std
@@ -96,10 +96,10 @@ namespace Std
|
|
|
|
|
|
|
|
|
|
public Allocator() |
|
|
|
|
{ |
|
|
|
|
__Instance = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(global::Std.Allocator.__Internal))); |
|
|
|
|
__Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); |
|
|
|
|
__ownsNativeInstance = true; |
|
|
|
|
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() |
|
|
|
@ -112,7 +112,7 @@ namespace Std
@@ -112,7 +112,7 @@ namespace Std
|
|
|
|
|
global::Std.Allocator __dummy; |
|
|
|
|
NativeToManagedMap.TryRemove(__Instance, out __dummy); |
|
|
|
|
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) |
|
|
|
|
Marshal.FreeHGlobal(__Instance); |
|
|
|
|
} |
|
|
|
@ -579,12 +579,12 @@ namespace Std
@@ -579,12 +579,12 @@ namespace Std
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
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] |
|
|
|
|
[DllImport("Std-templates", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
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 |
|
|
|
@ -635,7 +635,7 @@ namespace Std
@@ -635,7 +635,7 @@ namespace Std
|
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
return ret.ToPointer(); |
|
|
|
|
} |
|
|
|
@ -664,14 +664,14 @@ namespace Std
@@ -664,14 +664,14 @@ namespace Std
|
|
|
|
|
global::Std.Cxx11.BasicString __dummy; |
|
|
|
|
NativeToManagedMap.TryRemove(__Instance, out __dummy); |
|
|
|
|
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) |
|
|
|
|
Marshal.FreeHGlobal(__Instance); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|