@@ -700,11 +700,6 @@ public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_
700
700
EntryPoint = "_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2Ev" ) ]
701
701
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 ) ;
702
702
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
-
708
703
[ SuppressUnmanagedCodeSecurity ]
709
704
[ DllImport ( "Std-symbols" , CallingConvention = global ::System . Runtime . InteropServices . CallingConvention . Cdecl ,
710
705
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_
717
712
718
713
[ SuppressUnmanagedCodeSecurity ]
719
714
[ 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 ) ;
722
717
}
723
718
724
719
namespace Rep
@@ -829,7 +824,7 @@ public unsafe partial class BasicString<_CharT, _Traits, _Allocator> : IDisposab
829
824
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 )
830
825
{
831
826
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 ;
833
828
return ret . ToPointer ( ) ;
834
829
}
835
830
@@ -863,25 +858,6 @@ public BasicString()
863
858
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>>." ) ;
864
859
}
865
860
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
-
885
861
public void Dispose ( )
886
862
{
887
863
Dispose ( disposing : true ) ;
@@ -990,7 +966,7 @@ public partial struct __Internal
990
966
[ SuppressUnmanagedCodeSecurity ]
991
967
[ DllImport ( "Std-symbols" , CallingConvention = global ::System . Runtime . InteropServices . CallingConvention . Cdecl ,
992
968
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 ) ;
994
970
}
995
971
996
972
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
1005
981
return __result0 ;
1006
982
}
1007
983
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 )
1009
985
{
1010
986
var __arg0 = ReferenceEquals ( @this , null ) ? global ::System . IntPtr . Zero : @this . __Instance ;
1011
- var __ret = __Internal . CStr ( __arg0 ) ;
987
+ var __ret = __Internal . Data ( __arg0 ) ;
1012
988
return Marshal . PtrToStringAnsi ( __ret ) ;
1013
989
}
1014
990
}
0 commit comments