@@ -58,7 +58,7 @@ namespace Std
58
58
{
59
59
namespace CharTraits
60
60
{
61
- [ StructLayout ( LayoutKind . Sequential , Size = 1 ) ]
61
+ [ StructLayout ( LayoutKind . Explicit , Size = 1 ) ]
62
62
public unsafe partial struct __Internal
63
63
{
64
64
}
@@ -165,21 +165,24 @@ namespace Std
165
165
{
166
166
namespace CompressedPair
167
167
{
168
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
168
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
169
169
public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_S___rep_S2_
170
170
{
171
+ [ FieldOffset ( 0 ) ]
171
172
internal global ::Std . BasicString . Rep . __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __value_ ;
172
173
}
173
174
174
- [ StructLayout ( LayoutKind . Sequential , Size = 8 ) ]
175
+ [ StructLayout ( LayoutKind . Explicit , Size = 8 ) ]
175
176
public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S1_
176
177
{
178
+ [ FieldOffset ( 0 ) ]
177
179
internal __IntPtr __value_ ;
178
180
}
179
181
180
- [ StructLayout ( LayoutKind . Sequential , Size = 8 ) ]
182
+ [ StructLayout ( LayoutKind . Explicit , Size = 8 ) ]
181
183
public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair___i___N_std_N___1_S_allocator__i
182
184
{
185
+ [ FieldOffset ( 0 ) ]
183
186
internal __IntPtr __value_ ;
184
187
}
185
188
}
@@ -189,7 +192,7 @@ namespace Std
189
192
{
190
193
namespace Allocator
191
194
{
192
- [ StructLayout ( LayoutKind . Sequential , Size = 1 ) ]
195
+ [ StructLayout ( LayoutKind . Explicit , Size = 1 ) ]
193
196
public unsafe partial struct __Internal
194
197
{
195
198
[ SuppressUnmanagedCodeSecurity , DllImport ( "Std-symbols" , EntryPoint = "_ZNSt3__19allocatorIcEC2B8un170006Ev" , CallingConvention = __CallingConvention . Cdecl ) ]
@@ -300,9 +303,10 @@ namespace Std
300
303
{
301
304
namespace BasicString
302
305
{
303
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
306
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
304
307
public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C
305
308
{
309
+ [ FieldOffset ( 0 ) ]
306
310
internal global ::Std . CompressedPair . __Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C_S___rep_S2_ __r_ ;
307
311
308
312
[ SuppressUnmanagedCodeSecurity , DllImport ( "Std-symbols" , EntryPoint = "_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8un170006Ev" , CallingConvention = __CallingConvention . Cdecl ) ]
@@ -348,12 +352,19 @@ public unsafe partial struct __Internal
348
352
349
353
namespace Long
350
354
{
351
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
355
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
352
356
public unsafe partial struct __Internal
353
357
{
358
+ [ FieldOffset ( 0 ) ]
354
359
internal __IntPtr __data_ ;
360
+
361
+ [ FieldOffset ( 8 ) ]
355
362
internal ulong __size_ ;
363
+
364
+ [ FieldOffset ( 16 ) ]
356
365
internal ulong __cap_ ;
366
+
367
+ [ FieldOffset ( 23 ) ]
357
368
internal ulong __is_long_ ;
358
369
}
359
370
@@ -381,9 +392,10 @@ public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_
381
392
382
393
namespace Raw
383
394
{
384
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
395
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
385
396
public unsafe partial struct __Internal
386
397
{
398
+ [ FieldOffset ( 0 ) ]
387
399
internal fixed ulong __words [ 3 ] ;
388
400
}
389
401
}
@@ -533,19 +545,29 @@ namespace Std
533
545
{
534
546
namespace Vector
535
547
{
536
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
548
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
537
549
public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_
538
550
{
551
+ [ FieldOffset ( 0 ) ]
539
552
internal __IntPtr __begin_ ;
553
+
554
+ [ FieldOffset ( 8 ) ]
540
555
internal __IntPtr __end_ ;
556
+
557
+ [ FieldOffset ( 16 ) ]
541
558
internal global ::Std . CompressedPair . __Internalc__N_std_N___1_S___compressed_pair_____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S1_ __end_cap_ ;
542
559
}
543
560
544
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
561
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
545
562
public unsafe partial struct __Internalc__N_std_N___1_S_vector__i___N_std_N___1_S_allocator__i
546
563
{
564
+ [ FieldOffset ( 0 ) ]
547
565
internal __IntPtr __begin_ ;
566
+
567
+ [ FieldOffset ( 8 ) ]
548
568
internal __IntPtr __end_ ;
569
+
570
+ [ FieldOffset ( 16 ) ]
549
571
internal global ::Std . CompressedPair . __Internalc__N_std_N___1_S___compressed_pair___i___N_std_N___1_S_allocator__i __end_cap_ ;
550
572
}
551
573
}
@@ -555,9 +577,10 @@ namespace Std
555
577
{
556
578
namespace TreeEndNode
557
579
{
558
- [ StructLayout ( LayoutKind . Sequential , Size = 8 ) ]
580
+ [ StructLayout ( LayoutKind . Explicit , Size = 8 ) ]
559
581
public unsafe partial struct __Internal_Ptr
560
582
{
583
+ [ FieldOffset ( 0 ) ]
561
584
internal __IntPtr __left_ ;
562
585
}
563
586
}
0 commit comments