Skip to content

Add support for InlineArray #43

@eduherminio

Description

@eduherminio
[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)                            |
|======================================================|

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions