|
|
|
@ -52,7 +52,7 @@ namespace Std
@@ -52,7 +52,7 @@ namespace Std
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
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; } |
|
|
|
@ -114,7 +114,7 @@ namespace Std
@@ -114,7 +114,7 @@ namespace Std
|
|
|
|
|
global::Std.Allocator __dummy; |
|
|
|
|
NativeToManagedMap.TryRemove(__Instance, out __dummy); |
|
|
|
|
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) |
|
|
|
|
Marshal.FreeHGlobal(__Instance); |
|
|
|
|
__Instance = IntPtr.Zero; |
|
|
|
@ -342,10 +342,6 @@ namespace Std
@@ -342,10 +342,6 @@ namespace Std
|
|
|
|
|
[StructLayout(LayoutKind.Explicit, Size = 0)] |
|
|
|
|
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; } |
|
|
|
@ -387,13 +383,6 @@ namespace Std
@@ -387,13 +383,6 @@ namespace Std
|
|
|
|
|
__Instance = new global::System.IntPtr(native); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public CharTraits() |
|
|
|
|
{ |
|
|
|
|
__Instance = Marshal.AllocHGlobal(sizeof(global::Std.CharTraits.__Internal)); |
|
|
|
|
__ownsNativeInstance = true; |
|
|
|
|
NativeToManagedMap[__Instance] = this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void Dispose() |
|
|
|
|
{ |
|
|
|
|
Dispose(disposing: true); |
|
|
|
@ -409,12 +398,6 @@ namespace Std
@@ -409,12 +398,6 @@ namespace Std
|
|
|
|
|
Marshal.FreeHGlobal(__Instance); |
|
|
|
|
__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
@@ -665,7 +648,7 @@ namespace Std
|
|
|
|
|
[SuppressUnmanagedCodeSecurity] |
|
|
|
|
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
|
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] |
|
|
|
|
[DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, |
|
|
|
@ -752,19 +735,16 @@ namespace Std
@@ -752,19 +735,16 @@ namespace Std
|
|
|
|
|
global::Std.Cxx11.BasicString __dummy; |
|
|
|
|
NativeToManagedMap.TryRemove(__Instance, out __dummy); |
|
|
|
|
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) |
|
|
|
|
Marshal.FreeHGlobal(__Instance); |
|
|
|
|
__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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|