@ -25,15 +25,6 @@ namespace Std
@@ -25,15 +25,6 @@ namespace Std
{
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
@@ -168,6 +159,10 @@ namespace Std
}
}
public unsafe partial class VectorBase < _ Tp , _ Alloc >
{
}
namespace Vector
{
[StructLayout(LayoutKind.Explicit, Size = 24)]
@ -177,6 +172,10 @@ namespace Std
@@ -177,6 +172,10 @@ namespace Std
internal global :: Std . VectorBase . VectorImpl . _ _ Internal _ M_impl ;
}
}
public unsafe partial class Vector < _ Tp , _ Alloc >
{
}
}
namespace Std
@ -193,19 +192,6 @@ namespace Std
@@ -193,19 +192,6 @@ namespace Std
internal uint _ M_offset ;
}
}
public unsafe partial class BitConstIterator
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct __Internal
{
[FieldOffset(0)]
internal global :: System . IntPtr _ M_p ;
[FieldOffset(8)]
internal uint _ M_offset ;
}
}
}
namespace Std
@ -217,6 +203,10 @@ namespace Std
@@ -217,6 +203,10 @@ namespace Std
{
}
}
public unsafe partial class Less < _ Tp >
{
}
}
namespace Std
@ -272,6 +262,10 @@ namespace Std
@@ -272,6 +262,10 @@ namespace Std
}
}
public unsafe partial class RbTree < _ Key , _ Val , _ KeyOfValue , _ Compare , _ Alloc >
{
}
public unsafe partial class RbTreeNodeBase
{
[StructLayout(LayoutKind.Explicit, Size = 32)]
@ -316,6 +310,10 @@ namespace Std
@@ -316,6 +310,10 @@ namespace Std
}
}
}
public unsafe partial class Map < _ Key , _ Tp , _ Compare , _ Alloc >
{
}
}
namespace Std
@ -324,13 +322,6 @@ namespace Std
@@ -324,13 +322,6 @@ namespace Std
namespace Std
{
namespace Cxx11
{
}
namespace Cxx11
{
}
}
public unsafe partial class MbstateT
@ -436,32 +427,6 @@ namespace Std
@@ -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
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
@ -628,199 +593,170 @@ public unsafe partial struct PthreadRwlockT
@@ -628,199 +593,170 @@ public unsafe partial struct PthreadRwlockT
}
}
public unsafe partial class PthreadUnwindBufT
namespace Std
{
[StructLayout(LayoutKind.Explicit, Size = 104)]
public partial struct __Internal
public unsafe static partial class BasicStringExtensions
{
[FieldOffset(0)]
internal fixed byte _ _ cancel_jmp_buf [ 7 2 ] ;
[FieldOffset(72)]
internal void * _ _ pad ;
}
public unsafe partial class _
{
[StructLayout(LayoutKind.Explicit, Size = 72)]
[StructLayout(LayoutKind.Explicit, Size = 0)]
public partial struct __Internal
{
[FieldOffset(0)]
internal fixed long _ _ cancel_jmp_buf [ 8 ] ;
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "Std-symbols" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . Cdecl ,
EntryPoint = "_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_" ) ]
internal static extern global :: System . IntPtr BasicString ( global :: System . IntPtr instance , [ MarshalAs ( UnmanagedType . LPStr ) ] string _ _ s , global :: System . IntPtr _ _ a ) ;
[FieldOffset(64)]
internal int _ _ mask_was_saved ;
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "Std-symbols" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . Cdecl ,
EntryPoint = "_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv" ) ]
internal static extern global :: System . IntPtr CStr ( global :: System . IntPtr instance ) ;
}
}
}
namespace Std
{
namespace Cxx11
{
public unsafe static partial class BasicStringExtensions
public static global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > BasicString ( string _ _ s , global :: Std . Allocator < sbyte > _ _ a )
{
[StructLayout(LayoutKind.Explicit, Size = 0)]
public partial struct __Internal
{
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "Std-symbols" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . Cdecl ,
EntryPoint = "_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_" ) ]
internal static extern global :: System . IntPtr BasicString ( global :: System . IntPtr instance , [ MarshalAs ( UnmanagedType . LPStr ) ] string _ _ s , global :: System . IntPtr _ _ a ) ;
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "Std-symbols" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . Cdecl ,
EntryPoint = "_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv" ) ]
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 )
{
if ( ReferenceEquals ( _ _ a , null ) )
throw new global :: System . ArgumentNullException ( "__a" , "Cannot be null because it is a C++ reference (&)." ) ;
var _ _ arg1 = _ _ a . _ _ Instance ;
var _ _ ret = Marshal . AllocHGlobal ( 3 2 ) ;
_ _ Internal . BasicString ( _ _ ret , _ _ s , _ _ arg1 ) ;
global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > _ _ result0 ;
if ( _ _ ret = = IntPtr . Zero ) _ _ result0 = null ;
else if ( global :: Std . Cxx11 . 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 ] ;
else _ _ result0 = global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > . _ _ CreateInstance ( _ _ ret ) ;
return _ _ result0 ;
}
if ( ReferenceEquals ( _ _ a , null ) )
throw new global :: System . ArgumentNullException ( "__a" , "Cannot be null because it is a C++ reference (&)." ) ;
var _ _ arg1 = _ _ a . _ _ Instance ;
var _ _ ret = Marshal . AllocHGlobal ( 3 2 ) ;
_ _ Internal . BasicString ( _ _ ret , _ _ s , _ _ arg1 ) ;
global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > _ _ result0 ;
if ( _ _ ret = = IntPtr . Zero ) _ _ result0 = null ;
else if ( global :: Std . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > . NativeToManagedMap . ContainsKey ( _ _ 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 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > . _ _ CreateInstance ( _ _ ret ) ;
return _ _ result0 ;
}
public static string CStr ( this global :: Std . Cxx11 . BasicString < sbyte , global :: Std . CharTraits < sbyte > , global :: Std . Allocator < sbyte > > @this )
{
var _ _ arg0 = ReferenceEquals ( @this , null ) ? global :: System . IntPtr . Zero : @this . _ _ Instance ;
var _ _ ret = _ _ Internal . CStr ( _ _ arg0 ) ;
return Marshal . PtrToStringAnsi ( _ _ ret ) ;
}
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 _ _ ret = _ _ Internal . CStr ( _ _ arg0 ) ;
return Marshal . PtrToStringAnsi ( _ _ ret ) ;
}
}
namespace BasicString
namespace BasicString
{
[StructLayout(LayoutKind.Explicit, Size = 32)]
public unsafe partial struct __Internal
{
[StructLayout(LayoutKind.Explicit, Size = 32)]
public unsafe partial struct __Internal
{
[FieldOffset(0)]
internal global :: Std . Cxx11 . BasicString . AllocHider . _ _ Internal _ M_dataplus ;
[FieldOffset(0)]
internal global :: Std . BasicString . AllocHider . _ _ Internal _ M_dataplus ;
[FieldOffset(8)]
internal ulong _ M_string_length ;
[FieldOffset(8)]
internal ulong _ M_string_length ;
[FieldOffset(16)]
internal global :: Std . Cxx11 . BasicString . _. _ _ Internal _ ;
[FieldOffset(16)]
internal global :: Std . BasicString . _. _ _ Internal _ ;
[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 ( global :: System . IntPtr instance ) ;
[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 ( global :: System . IntPtr instance ) ;
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "Std-symbols" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . Cdecl ,
EntryPoint = "_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv" ) ]
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 ( global :: System . IntPtr instance ) ;
}
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "Std-symbols" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . Cdecl ,
EntryPoint = "_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv" ) ]
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 ( global :: System . IntPtr instance ) ;
}
public unsafe partial class AllocHider
public unsafe partial class AllocHider
{
[StructLayout(LayoutKind.Explicit, Size = 8)]
public partial struct __Internal
{
[StructLayout(LayoutKind.Explicit, Size = 8)]
public partial struct __Internal
{
[FieldOffset(0)]
internal global :: System . IntPtr _ M_p ;
}
[FieldOffset(0)]
internal global :: System . IntPtr _ M_p ;
}
public unsafe partial struct _
}
public unsafe partial struct _
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct __Internal
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct __Internal
{
[FieldOffset(0)]
internal fixed sbyte _ M_local_buf [ 1 6 ] ;
[FieldOffset(0)]
internal fixed sbyte _ M_local_buf [ 1 6 ] ;
[FieldOffset(0)]
internal ulong _ M_allocated_capacity ;
}
[FieldOffset(0)]
internal ulong _ M_allocated_capacity ;
}
}
}
public unsafe partial class BasicString < _ CharT , _ Traits , _ Alloc > : IDisposable
public unsafe partial class BasicString < _ CharT , _ Traits , _ Alloc > : IDisposable
{
internal enum S_localCapacity
{
internal enum S_localCapacity
{
S_localCapacity = 0
}
S_localCapacity = 0
}
public global :: System . IntPtr _ _ Instance { get ; protected set ; }
public global :: System . IntPtr _ _ Instance { get ; protected set ; }
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 > > ( ) ;
protected void * [ ] _ _ OriginalVTables ;
protected int _ _ PointerAdjustment ;
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 bool _ _ ownsNativeInstance ;
protected bool _ _ ownsNativeInstance ;
internal static global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > _ _ CreateInstance ( global :: System . IntPtr native , bool skipVTables = false )
{
return new global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > ( native . ToPointer ( ) , skipVTables ) ;
}
internal static global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > _ _ CreateInstance ( global :: System . IntPtr native , bool skipVTables = false )
{
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 )
{
return new global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > ( native , skipVTables ) ;
}
internal static global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > _ _ CreateInstance ( global :: Std . BasicString . _ _ Internal native , bool skipVTables = false )
{
return new global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > ( native , skipVTables ) ;
}
private static void * _ _ CopyValue ( global :: Std . Cxx11 . BasicString . _ _ Internal native )
{
var ret = Marshal . AllocHGlobal ( sizeof ( global :: Std . Cxx11 . BasicString . _ _ Internal ) ) ;
* ( global :: Std . Cxx11 . BasicString . _ _ Internal * ) ret = native ;
return ret . ToPointer ( ) ;
}
private static void * _ _ CopyValue ( global :: Std . BasicString . _ _ Internal native )
{
var ret = Marshal . AllocHGlobal ( sizeof ( global :: Std . BasicString . _ _ Internal ) ) ;
* ( global :: Std . BasicString . _ _ Internal * ) ret = native ;
return ret . ToPointer ( ) ;
}
private BasicString ( global :: Std . Cxx11 . BasicString . _ _ Internal native , bool skipVTables = false )
: this ( _ _ CopyValue ( native ) , skipVTables )
{
_ _ ownsNativeInstance = true ;
NativeToManagedMap [ _ _ Instance ] = this ;
}
private BasicString ( global :: Std . BasicString . _ _ Internal native , bool skipVTables = false )
: this ( _ _ CopyValue ( native ) , skipVTables )
{
_ _ ownsNativeInstance = true ;
NativeToManagedMap [ _ _ Instance ] = this ;
}
protected BasicString ( void * native , bool skipVTables = false )
{
if ( native = = null )
return ;
_ _ Instance = new global :: System . IntPtr ( native ) ;
}
protected BasicString ( void * native , bool skipVTables = false )
{
if ( native = = null )
return ;
_ _ Instance = new global :: System . IntPtr ( native ) ;
}
public void Dispose ( )
{
Dispose ( disposing : true ) ;
}
public void Dispose ( )
{
Dispose ( disposing : true ) ;
}
public virtual void Dispose ( bool disposing )
public virtual void Dispose ( bool disposing )
{
if ( _ _ Instance = = IntPtr . Zero )
return ;
global :: Std . BasicString < _ CharT , _ Traits , _ Alloc > _ _d ummy ;
NativeToManagedMap . TryRemove ( _ _ Instance , out _ _d ummy ) ;
if ( disposing )
{
if ( _ _ Instance = = IntPtr . Zero )
return ;
global :: Std . Cxx11 . BasicString < _ CharT , _ Traits , _ Alloc > _ _d ummy ;
NativeToManagedMap . TryRemove ( _ _ Instance , out _ _d ummy ) ;
if ( disposing )
var _ _ _ CharT = typeof ( _ CharT ) ;
var _ _ _ Traits = typeof ( _ Traits ) ;
var _ _ _ Alloc = typeof ( _ Alloc ) ;
if ( _ _ _ CharT . IsAssignableFrom ( typeof ( sbyte ) ) & & _ _ _ Traits . IsAssignableFrom ( typeof ( global :: Std . CharTraits < sbyte > ) ) & & _ _ _ Alloc . IsAssignableFrom ( typeof ( global :: Std . Allocator < sbyte > ) ) )
{
var _ _ _ CharT = typeof ( _ CharT ) ;
var _ _ _ Traits = typeof ( _ Traits ) ;
var _ _ _ Alloc = typeof ( _ Alloc ) ;
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 ) ) ;
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>>." ) ;
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 ;
}
if ( _ _ ownsNativeInstance )
Marshal . FreeHGlobal ( _ _ Instance ) ;
_ _ Instance = IntPtr . Zero ;
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 )
Marshal . FreeHGlobal ( _ _ Instance ) ;
_ _ Instance = IntPtr . Zero ;
}
}
}
@ -878,13 +814,6 @@ public unsafe partial struct Wait
@@ -878,13 +814,6 @@ public unsafe partial struct Wait
namespace Std
{
namespace Cxx11
{
}
namespace Cxx11
{
}
}
namespace Std