@ -25,15 +25,6 @@ namespace Std
{
{
namespace ExceptionPtr
namespace ExceptionPtr
{
{
public unsafe partial class ExceptionPtr
{
[StructLayout(LayoutKind.Explicit, Size = 8)]
public partial struct __Internal
{
[FieldOffset(0)]
internal global :: System . IntPtr _ M_exception_object ;
}
}
}
}
}
}
@ -168,6 +159,10 @@ namespace Std
}
}
}
}
public unsafe partial class VectorBase < _ Tp , _ Alloc >
{
}
namespace Vector
namespace Vector
{
{
[StructLayout(LayoutKind.Explicit, Size = 24)]
[StructLayout(LayoutKind.Explicit, Size = 24)]
@ -177,24 +172,15 @@ namespace Std
internal global :: Std . VectorBase . VectorImpl . _ _ Internal _ M_impl ;
internal global :: Std . VectorBase . VectorImpl . _ _ Internal _ M_impl ;
}
}
}
}
}
namespace Std
public unsafe partial class Vector < _ Tp , _ Alloc >
{
public unsafe partial class BitIterator
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct __Internal
{
{
[FieldOffset(0)]
internal global :: System . IntPtr _ M_p ;
[FieldOffset(8)]
internal uint _ M_offset ;
}
}
}
}
public unsafe partial class BitConstIterator
namespace Std
{
public unsafe partial class BitIterator
{
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct __Internal
public partial struct __Internal
@ -217,6 +203,10 @@ namespace Std
{
{
}
}
}
}
public unsafe partial class Less < _ Tp >
{
}
}
}
namespace Std
namespace Std
@ -272,6 +262,10 @@ namespace Std
}
}
}
}
public unsafe partial class RbTree < _ Key , _ Val , _ KeyOfValue , _ Compare , _ Alloc >
{
}
public unsafe partial class RbTreeNodeBase
public unsafe partial class RbTreeNodeBase
{
{
[StructLayout(LayoutKind.Explicit, Size = 32)]
[StructLayout(LayoutKind.Explicit, Size = 32)]
@ -316,22 +310,19 @@ namespace Std
}
}
}
}
}
}
}
namespace Std
public unsafe partial class Map < _ Key , _ Tp , _ Compare , _ Alloc >
{
{
}
}
}
namespace Std
namespace Std
{
namespace Cxx11
{
{
}
}
namespace Cxx11
namespace Std
{
{
}
}
}
public unsafe partial class MbstateT
public unsafe partial class MbstateT
{
{
@ -436,32 +427,6 @@ namespace Std
{
{
}
}
public unsafe partial class Timespec
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct __Internal
{
[FieldOffset(0)]
internal long tv_sec ;
[FieldOffset(8)]
internal long tv_nsec ;
}
}
public unsafe partial class Timeval
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct __Internal
{
[FieldOffset(0)]
internal long tv_sec ;
[FieldOffset(8)]
internal long tv_usec ;
}
}
public unsafe partial class PthreadInternalList
public unsafe partial class PthreadInternalList
{
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
[StructLayout(LayoutKind.Explicit, Size = 16)]
@ -628,35 +593,7 @@ public unsafe partial struct PthreadRwlockT
}
}
}
}
public unsafe partial class PthreadUnwindBufT
{
[StructLayout(LayoutKind.Explicit, Size = 104)]
public partial struct __Internal
{
[FieldOffset(0)]
internal fixed byte _ _ cancel_jmp_buf [ 7 2 ] ;
[FieldOffset(72)]
internal void * _ _ pad ;
}
public unsafe partial class _
{
[StructLayout(LayoutKind.Explicit, Size = 72)]
public partial struct __Internal
{
[FieldOffset(0)]
internal fixed long _ _ cancel_jmp_buf [ 8 ] ;
[FieldOffset(64)]
internal int _ _ mask_was_saved ;
}
}
}
namespace Std
namespace Std
{
namespace Cxx11
{
{
public unsafe static partial class BasicStringExtensions
public unsafe static partial class BasicStringExtensions
{
{
@ -674,22 +611,22 @@ namespace Std
internal static extern global :: System . IntPtr CStr ( global :: System . IntPtr instance ) ;
internal static extern global :: System . IntPtr CStr ( global :: System . IntPtr instance ) ;
}
}
public static global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > BasicString ( string _ _ s , global :: Std . Allocator < sbyte > _ _ a )
public static global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > BasicString ( string _ _ s , global :: Std . Allocator < sbyte > _ _ a )
{
{
if ( ReferenceEquals ( _ _ a , null ) )
if ( ReferenceEquals ( _ _ a , null ) )
throw new global :: System . ArgumentNullException ( "__a" , "Cannot be null because it is a C++ reference (&)." ) ;
throw new global :: System . ArgumentNullException ( "__a" , "Cannot be null because it is a C++ reference (&)." ) ;
var _ _ arg1 = _ _ a . _ _ Instance ;
var _ _ arg1 = _ _ a . _ _ Instance ;
var _ _ ret = Marshal . AllocHGlobal ( 3 2 ) ;
var _ _ ret = Marshal . AllocHGlobal ( 3 2 ) ;
_ _ Internal . BasicString ( _ _ ret , _ _ s , _ _ arg1 ) ;
_ _ Internal . BasicString ( _ _ ret , _ _ s , _ _ arg1 ) ;
global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > _ _ result0 ;
global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > _ _ result0 ;
if ( _ _ ret = = IntPtr . Zero ) _ _ result0 = null ;
if ( _ _ ret = = IntPtr . Zero ) _ _ result0 = null ;
else if ( global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > . NativeToManagedMap . ContainsKey ( _ _ ret ) )
else if ( global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > . NativeToManagedMap . ContainsKey ( _ _ ret ) )
_ _ result0 = ( global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > ) global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > . NativeToManagedMap [ _ _ ret ] ;
_ _ result0 = ( global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > ) global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > . NativeToManagedMap [ _ _ ret ] ;
else _ _ result0 = global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > . _ _ CreateInstance ( _ _ ret ) ;
else _ _ result0 = global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > . _ _ CreateInstance ( _ _ ret ) ;
return _ _ result0 ;
return _ _ result0 ;
}
}
public static string CStr ( this global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > @this )
public static string CStr ( this global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > @this )
{
{
var _ _ arg0 = ReferenceEquals ( @this , null ) ? global :: System . IntPtr . Zero : @this . _ _ Instance ;
var _ _ arg0 = ReferenceEquals ( @this , null ) ? global :: System . IntPtr . Zero : @this . _ _ Instance ;
var _ _ ret = _ _ Internal . CStr ( _ _ arg0 ) ;
var _ _ ret = _ _ Internal . CStr ( _ _ arg0 ) ;
@ -703,13 +640,13 @@ namespace Std
public unsafe partial struct __Internal
public unsafe partial struct __Internal
{
{
[FieldOffset(0)]
[FieldOffset(0)]
internal global :: Std . Cxx11 . BasicString . AllocHider . _ _ Internal _ M_dataplus ;
internal global :: Std . BasicString . AllocHider . _ _ Internal _ M_dataplus ;
[FieldOffset(8)]
[FieldOffset(8)]
internal ulong _ M_string_length ;
internal ulong _ M_string_length ;
[FieldOffset(16)]
[FieldOffset(16)]
internal global :: Std . Cxx11 . BasicString . _. _ _ Internal _ ;
internal global :: Std . BasicString . _. _ _ Internal _ ;
[SuppressUnmanagedCodeSecurity]
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "Std-symbols" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . Cdecl ,
[ DllImport ( "Std-symbols" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . Cdecl ,
@ -758,29 +695,29 @@ namespace Std
public global :: System . IntPtr _ _ Instance { get ; protected set ; }
public global :: System . IntPtr _ _ Instance { get ; protected set ; }
protected int _ _ PointerAdjustment ;
protected int _ _ PointerAdjustment ;
internal static readonly global :: System . Collections . Concurrent . ConcurrentDictionary < IntPtr , global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > > NativeToManagedMap = new global :: System . Collections . Concurrent . ConcurrentDictionary < IntPtr , global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > > ( ) ;
internal static readonly global :: System . Collections . Concurrent . ConcurrentDictionary < IntPtr , global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > > NativeToManagedMap = new global :: System . Collections . Concurrent . ConcurrentDictionary < IntPtr , global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > > ( ) ;
protected void * [ ] _ _ OriginalVTables ;
protected void * [ ] _ _ OriginalVTables ;
protected bool _ _ ownsNativeInstance ;
protected bool _ _ ownsNativeInstance ;
internal static global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > _ _ CreateInstance ( global :: System . IntPtr native , bool skipVTables = false )
internal static global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > _ _ CreateInstance ( global :: System . IntPtr native , bool skipVTables = false )
{
{
return new global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > ( native . ToPointer ( ) , skipVTables ) ;
return new global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > ( native . ToPointer ( ) , skipVTables ) ;
}
}
internal static global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > _ _ CreateInstance ( global :: Std . Cxx11 . BasicString . _ _ Internal native , bool skipVTables = false )
internal static global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > _ _ CreateInstance ( global :: Std . BasicString . _ _ Internal native , bool skipVTables = false )
{
{
return new global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > ( native , skipVTables ) ;
return new global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > ( native , skipVTables ) ;
}
}
private static void * _ _ CopyValue ( global :: Std . Cxx11 . BasicString . _ _ Internal native )
private static void * _ _ CopyValue ( global :: Std . BasicString . _ _ Internal native )
{
{
var ret = Marshal . AllocHGlobal ( sizeof ( global :: Std . Cxx11 . BasicString . _ _ Internal ) ) ;
var ret = Marshal . AllocHGlobal ( sizeof ( global :: Std . BasicString . _ _ Internal ) ) ;
* ( global :: Std . Cxx11 . BasicString . _ _ Internal * ) ret = native ;
* ( global :: Std . BasicString . _ _ Internal * ) ret = native ;
return ret . ToPointer ( ) ;
return ret . ToPointer ( ) ;
}
}
private BasicString ( global :: Std . Cxx11 . BasicString . _ _ Internal native , bool skipVTables = false )
private BasicString ( global :: Std . BasicString . _ _ Internal native , bool skipVTables = false )
: this ( _ _ CopyValue ( native ) , skipVTables )
: this ( _ _ CopyValue ( native ) , skipVTables )
{
{
_ _ ownsNativeInstance = true ;
_ _ ownsNativeInstance = true ;
@ -803,7 +740,7 @@ namespace Std
{
{
if ( _ _ Instance = = IntPtr . Zero )
if ( _ _ Instance = = IntPtr . Zero )
return ;
return ;
global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > _ _d ummy ;
global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > _ _d ummy ;
NativeToManagedMap . TryRemove ( _ _ Instance , out _ _d ummy ) ;
NativeToManagedMap . TryRemove ( _ _ Instance , out _ _d ummy ) ;
if ( disposing )
if ( disposing )
{
{
@ -812,10 +749,10 @@ namespace Std
var _ _ _ Alloc = typeof ( _ Alloc ) ;
var _ _ _ Alloc = typeof ( _ Alloc ) ;
if ( _ _ _ CharT . IsAssignableFrom ( typeof ( sbyte ) ) & & _ _ _ Traits . IsAssignableFrom ( typeof ( global :: Std . CharTraits < sbyte > ) ) & & _ _ _ Alloc . IsAssignableFrom ( typeof ( global :: Std . Allocator < sbyte > ) ) )
if ( _ _ _ CharT . IsAssignableFrom ( typeof ( sbyte ) ) & & _ _ _ Traits . IsAssignableFrom ( typeof ( global :: Std . CharTraits < sbyte > ) ) & & _ _ _ Alloc . IsAssignableFrom ( typeof ( global :: Std . Allocator < sbyte > ) ) )
{
{
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 ) ) ;
global :: Std . BasicString . _ _ Internal . dtorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C ( ( _ _ Instance + _ _ PointerAdjustment ) ) ;
return ;
return ;
}
}
throw new ArgumentOutOfRangeException ( "_CharT, _Traits, _Alloc" , string . Join ( ", " , new [ ] { typeof ( _ CharT ) . FullName , typeof ( _ Traits ) . FullName , typeof ( _ Alloc ) . FullName } ) , "global::Std.Cxx11 .BasicString<_CharT, _Traits, _Alloc> 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>>." ) ;
throw new ArgumentOutOfRangeException ( "_CharT, _Traits, _Alloc" , string . Join ( ", " , new [ ] { typeof ( _ CharT ) . FullName , typeof ( _ Traits ) . FullName , typeof ( _ Alloc ) . FullName } ) , "global::Std.BasicString<_CharT, _Traits, _Alloc> 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>>." ) ;
}
}
if ( _ _ ownsNativeInstance )
if ( _ _ ownsNativeInstance )
Marshal . FreeHGlobal ( _ _ Instance ) ;
Marshal . FreeHGlobal ( _ _ Instance ) ;
@ -823,7 +760,6 @@ namespace Std
}
}
}
}
}
}
}
public unsafe partial struct Wait
public unsafe partial struct Wait
{
{
@ -878,13 +814,6 @@ public unsafe partial struct Wait
namespace Std
namespace Std
{
{
namespace Cxx11
{
}
namespace Cxx11
{
}
}
}
namespace Std
namespace Std