-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
[InlineArray(3)]
public struct A
{
private B _entries; // 10 bytes
public static ulong Size => (ulong)Marshal.SizeOf<A>(); // Returns 30
}Current output:
-------------------------------------------------------------------------------------------
Type layout for 'A'
Size: 30 bytes. Paddings: 20 bytes (%66 of empty space)
|======================================================|
| 0-9: B _entries (10 bytes) |
| ....
| |======================================| |
|------------------------------------------------------|
| 10-29: padding (20 bytes) |
|======================================================|
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels