-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
ObjectLayoutInspector.TypeLayout.PrintLayout<object>();
Prints:
Type layout for 'Object'
Size: 8 bytes. Paddings: 0 bytes (%0 of empty space)
|============================|
| Object Header (8 bytes) |
|----------------------------|
| Method Table Ptr (8 bytes) |
|============================|
|============================|
However, empty classes occupy IntPtr.Size bytes (ObjectLayoutInspector.TypeInspector.GetSizeOfReferenceTypeInstance(typeof(object)) returns 8 on 64-bit OS).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels