@@ -700,11 +700,6 @@ public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_
700700 EntryPoint = "_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2Ev" ) ]
701701 internal static extern void ctorc__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 ) ;
702702
703- [ SuppressUnmanagedCodeSecurity ]
704- [ DllImport ( "Std-symbols" , CallingConvention = global ::System . Runtime . InteropServices . CallingConvention . Cdecl ,
705- EntryPoint = "_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" ) ]
706- internal static extern void cctorc__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 , global ::System . IntPtr __str ) ;
707-
708703 [ SuppressUnmanagedCodeSecurity ]
709704 [ DllImport ( "Std-symbols" , CallingConvention = global ::System . Runtime . InteropServices . CallingConvention . Cdecl ,
710705 EntryPoint = "_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" ) ]
@@ -717,8 +712,8 @@ public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_
717712
718713 [ SuppressUnmanagedCodeSecurity ]
719714 [ DllImport ( "Std-symbols" , CallingConvention = global ::System . Runtime . InteropServices . CallingConvention . Cdecl ,
720- EntryPoint = "_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5c_strEv " ) ]
721- 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 ( global ::System . IntPtr __instance ) ;
715+ EntryPoint = "_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4dataEv " ) ]
716+ internal static extern global ::System . IntPtr Datac__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 ) ;
722717 }
723718
724719 namespace Rep
@@ -829,7 +824,7 @@ public unsafe partial class BasicString<_CharT, _Traits, _Allocator> : IDisposab
829824 private static void * __CopyValue ( global ::Std . BasicString . __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C native )
830825 {
831826 var ret = Marshal . AllocHGlobal ( sizeof ( global ::Std . BasicString . __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C ) ) ;
832- global ::Std . BasicString . __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C . cctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C ( ret , new global :: System . IntPtr ( & native ) ) ;
827+ * ( global ::Std . BasicString . __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C * ) ret = native ;
833828 return ret . ToPointer ( ) ;
834829 }
835830
@@ -863,25 +858,6 @@ public BasicString()
863858 throw new ArgumentOutOfRangeException ( "_CharT, _Traits, _Allocator" , string . Join ( ", " , new [ ] { typeof ( _CharT ) . FullName , typeof ( _Traits ) . FullName , typeof ( _Allocator ) . FullName } ) , "global::Std.BasicString<_CharT, _Traits, _Allocator> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: <sbyte, global::Std.CharTraits<sbyte>, global::Std.Allocator<sbyte>>." ) ;
864859 }
865860
866- public BasicString ( global ::Std . BasicString < _CharT , _Traits , _Allocator > __str )
867- {
868- var ___CharT = typeof ( _CharT ) ;
869- var ___Traits = typeof ( _Traits ) ;
870- var ___Allocator = typeof ( _Allocator ) ;
871- if ( ___CharT . IsAssignableFrom ( typeof ( sbyte ) ) && ___Traits . IsAssignableFrom ( typeof ( global ::Std . CharTraits < sbyte > ) ) && ___Allocator . IsAssignableFrom ( typeof ( global ::Std . Allocator < sbyte > ) ) )
872- {
873- __Instance = Marshal . AllocHGlobal ( sizeof ( global ::Std . BasicString . __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C ) ) ;
874- __ownsNativeInstance = true ;
875- NativeToManagedMap [ __Instance ] = this ;
876- if ( ReferenceEquals ( __str , null ) )
877- throw new global ::System . ArgumentNullException ( "__str" , "Cannot be null because it is a C++ reference (&)." ) ;
878- var __arg0 = __str . __Instance ;
879- global ::Std . BasicString . __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C . cctorc__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 ) , __arg0 ) ;
880- return ;
881- }
882- throw new ArgumentOutOfRangeException ( "_CharT, _Traits, _Allocator" , string . Join ( ", " , new [ ] { typeof ( _CharT ) . FullName , typeof ( _Traits ) . FullName , typeof ( _Allocator ) . FullName } ) , "global::Std.BasicString<_CharT, _Traits, _Allocator> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: <sbyte, global::Std.CharTraits<sbyte>, global::Std.Allocator<sbyte>>." ) ;
883- }
884-
885861 public void Dispose ( )
886862 {
887863 Dispose ( disposing : true ) ;
@@ -990,7 +966,7 @@ public partial struct __Internal
990966 [ SuppressUnmanagedCodeSecurity ]
991967 [ DllImport ( "Std-symbols" , CallingConvention = global ::System . Runtime . InteropServices . CallingConvention . Cdecl ,
992968 EntryPoint = "_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5c_strEv" ) ]
993- internal static extern global ::System . IntPtr CStr ( global ::System . IntPtr __instance ) ;
969+ internal static extern global ::System . IntPtr Data ( global ::System . IntPtr __instance ) ;
994970 }
995971
996972 public static global ::Std . BasicString < sbyte , global ::Std . CharTraits < sbyte > , global ::Std . Allocator < sbyte > > Assign ( this global ::Std . BasicString < sbyte , global ::Std . CharTraits < sbyte > , global ::Std . Allocator < sbyte > > @this , string __s )
@@ -1005,10 +981,10 @@ public partial struct __Internal
1005981 return __result0 ;
1006982 }
1007983
1008- public static string CStr ( this global ::Std . BasicString < sbyte , global ::Std . CharTraits < sbyte > , global ::Std . Allocator < sbyte > > @this )
984+ public static string Data ( this global ::Std . BasicString < sbyte , global ::Std . CharTraits < sbyte > , global ::Std . Allocator < sbyte > > @this )
1009985 {
1010986 var __arg0 = ReferenceEquals ( @this , null ) ? global ::System . IntPtr . Zero : @this . __Instance ;
1011- var __ret = __Internal . CStr ( __arg0 ) ;
987+ var __ret = __Internal . Data ( __arg0 ) ;
1012988 return Marshal . PtrToStringAnsi ( __ret ) ;
1013989 }
1014990 }
0 commit comments