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.
Constructor
new StructTypeNode(membersLayout, name?)| Parameter | Type | Default Value |
|---|---|---|
| membersLayout | Object | — |
| name? | null | string | null |
Creates an instance of StructTypeNode.
| Accessor | Type | Modifiers |
|---|---|---|
| get type | string | static |
| Method | Type | Modifiers |
|---|---|---|
| getLength | () => number | — |
| getMemberType | (builder: any, name: any) => string | — |
| getNodeType | (builder: any) => any | — |
| setup | (builder: any) => void | — |
| generate | (builder: any) => any | — |
Extends
Node