File: StructTypeNode.md | Updated: 11/15/2025
Represents a struct type node in the node-based system. This class is used to define and manage the layout and types of struct members. It extends the base Node class and provides methods to get the length of the struct, retrieve member types, and generate the struct type for a builder.
Creates an instance of StructTypeNode.
membersLayout | The layout of the members for the struct.
---|---
name | The optional name of the struct. Default is null.
This flag can be used for type testing.
Default is true.
The layout of the members for the struct
The name of the struct.
Default is null.
Overrides: Node#name
Returns the length of the struct. The length is calculated by summing the lengths of the struct's members.
Returns: The length of the struct.