@@ -59,7 +59,7 @@ namespace Std
59
59
{
60
60
namespace CharTraits
61
61
{
62
- [ StructLayout ( LayoutKind . Sequential , Size = 1 ) ]
62
+ [ StructLayout ( LayoutKind . Explicit , Size = 1 ) ]
63
63
public unsafe partial struct __Internal
64
64
{
65
65
}
@@ -166,21 +166,24 @@ namespace Std
166
166
{
167
167
namespace CompressedPair
168
168
{
169
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
169
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
170
170
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_
171
171
{
172
+ [ FieldOffset ( 0 ) ]
172
173
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_ ;
173
174
}
174
175
175
- [ StructLayout ( LayoutKind . Sequential , Size = 8 ) ]
176
+ [ StructLayout ( LayoutKind . Explicit , Size = 8 ) ]
176
177
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_
177
178
{
179
+ [ FieldOffset ( 0 ) ]
178
180
internal __IntPtr __value_ ;
179
181
}
180
182
181
- [ StructLayout ( LayoutKind . Sequential , Size = 8 ) ]
183
+ [ StructLayout ( LayoutKind . Explicit , Size = 8 ) ]
182
184
public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair___i___N_std_N___1_S_allocator__i
183
185
{
186
+ [ FieldOffset ( 0 ) ]
184
187
internal __IntPtr __value_ ;
185
188
}
186
189
}
@@ -190,7 +193,7 @@ namespace Std
190
193
{
191
194
namespace Allocator
192
195
{
193
- [ StructLayout ( LayoutKind . Sequential , Size = 1 ) ]
196
+ [ StructLayout ( LayoutKind . Explicit , Size = 1 ) ]
194
197
public unsafe partial struct __Internal
195
198
{
196
199
[ SuppressUnmanagedCodeSecurity , DllImport ( "Std-symbols" , EntryPoint = "_ZNSt3__19allocatorIcEC2B8un170006Ev" , CallingConvention = __CallingConvention . Cdecl ) ]
@@ -301,9 +304,10 @@ namespace Std
301
304
{
302
305
namespace BasicString
303
306
{
304
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
307
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
305
308
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
306
309
{
310
+ [ FieldOffset ( 0 ) ]
307
311
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_ ;
308
312
309
313
[ SuppressUnmanagedCodeSecurity , DllImport ( "Std-symbols" , EntryPoint = "_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8un170006Ev" , CallingConvention = __CallingConvention . Cdecl ) ]
@@ -352,12 +356,19 @@ public unsafe partial struct __Internal
352
356
353
357
namespace Long
354
358
{
355
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
359
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
356
360
public unsafe partial struct __Internal
357
361
{
362
+ [ FieldOffset ( 0 ) ]
358
363
internal __IntPtr __data_ ;
364
+
365
+ [ FieldOffset ( 8 ) ]
359
366
internal ulong __size_ ;
367
+
368
+ [ FieldOffset ( 16 ) ]
360
369
internal ulong __cap_ ;
370
+
371
+ [ FieldOffset ( 23 ) ]
361
372
internal ulong __is_long_ ;
362
373
}
363
374
@@ -385,9 +396,10 @@ public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_
385
396
386
397
namespace Raw
387
398
{
388
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
399
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
389
400
public unsafe partial struct __Internal
390
401
{
402
+ [ FieldOffset ( 0 ) ]
391
403
internal fixed ulong __words [ 3 ] ;
392
404
}
393
405
}
@@ -526,19 +538,29 @@ namespace Std
526
538
{
527
539
namespace Vector
528
540
{
529
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
541
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
530
542
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_
531
543
{
544
+ [ FieldOffset ( 0 ) ]
532
545
internal __IntPtr __begin_ ;
546
+
547
+ [ FieldOffset ( 8 ) ]
533
548
internal __IntPtr __end_ ;
549
+
550
+ [ FieldOffset ( 16 ) ]
534
551
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_ ;
535
552
}
536
553
537
- [ StructLayout ( LayoutKind . Sequential , Size = 24 ) ]
554
+ [ StructLayout ( LayoutKind . Explicit , Size = 24 ) ]
538
555
public unsafe partial struct __Internalc__N_std_N___1_S_vector__i___N_std_N___1_S_allocator__i
539
556
{
557
+ [ FieldOffset ( 0 ) ]
540
558
internal __IntPtr __begin_ ;
559
+
560
+ [ FieldOffset ( 8 ) ]
541
561
internal __IntPtr __end_ ;
562
+
563
+ [ FieldOffset ( 16 ) ]
542
564
internal global ::Std . CompressedPair . __Internalc__N_std_N___1_S___compressed_pair___i___N_std_N___1_S_allocator__i __end_cap_ ;
543
565
}
544
566
}
@@ -548,9 +570,10 @@ namespace Std
548
570
{
549
571
namespace TreeEndNode
550
572
{
551
- [ StructLayout ( LayoutKind . Sequential , Size = 8 ) ]
573
+ [ StructLayout ( LayoutKind . Explicit , Size = 8 ) ]
552
574
public unsafe partial struct __Internal_Ptr
553
575
{
576
+ [ FieldOffset ( 0 ) ]
554
577
internal __IntPtr __left_ ;
555
578
}
556
579
}
0 commit comments