Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/DotNet/ExportedType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ public TypeAttributes Layout {
/// </summary>
public bool IsExplicitLayout => ((TypeAttributes)attributes & TypeAttributes.LayoutMask) == TypeAttributes.ExplicitLayout;

/// <summary>
/// <c>true</c> if <see cref="TypeAttributes.ExtendedLayout"/> is set
/// </summary>
public bool IsExtendedLayout => ((TypeAttributes)attributes & TypeAttributes.LayoutMask) == TypeAttributes.ExtendedLayout;

/// <summary>
/// Gets/sets the <see cref="TypeAttributes.Interface"/> bit
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions src/DotNet/TypeAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public enum TypeAttributes : uint {
SequentialLayout = 0x00000008,
/// <summary>Layout is supplied explicitly</summary>
ExplicitLayout = 0x00000010,
/// <summary>Layout is supplied via the System.Runtime.InteropServices.ExtendedLayoutAttribute</summary>
ExtendedLayout = 0x00000018,

/// <summary>Use this mask to retrieve class semantics information.</summary>
ClassSemanticsMask = 0x00000020,
Expand Down
5 changes: 5 additions & 0 deletions src/DotNet/TypeDef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,11 @@ public TypeAttributes Layout {
/// </summary>
public bool IsExplicitLayout => ((TypeAttributes)attributes & TypeAttributes.LayoutMask) == TypeAttributes.ExplicitLayout;

/// <summary>
/// <c>true</c> if <see cref="TypeAttributes.ExtendedLayout"/> is set
/// </summary>
public bool IsExtendedLayout => ((TypeAttributes)attributes & TypeAttributes.LayoutMask) == TypeAttributes.ExtendedLayout;

/// <summary>
/// Gets/sets the <see cref="TypeAttributes.Interface"/> bit
/// </summary>
Expand Down
Loading