Table of Contents

Class LayoutInfo

Namespace
CStructSharp.Introspection
Assembly
CStructSharp.dll

A read-only description of a compiled layout: its declarations with their sizes, alignments, fields, offsets, and members. Built on first use from the compiled model, so a layout that is never inspected pays nothing.

public sealed class LayoutInfo
Inheritance
LayoutInfo
Inherited Members

Properties

Constants

Gets the layout's #defines; the same view as Constants.

public IReadOnlyDictionary<string, LayoutConstant> Constants { get; }

Property Value

IReadOnlyDictionary<string, LayoutConstant>

Declarations

Gets every exported declaration in source order (a typedef's tag appears as its own struct or union).

public IReadOnlyList<LayoutDeclarationInfo> Declarations { get; }

Property Value

IReadOnlyList<LayoutDeclarationInfo>

Includes

Gets the recorded #include paths; the same view as Includes.

public IReadOnlyList<string> Includes { get; }

Property Value

IReadOnlyList<string>