You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/nodes/core/StructTypeNode.js
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,17 @@
1
+
1
2
importNodefrom'./Node.js';
2
3
import{getLengthFromType}from'./NodeUtils.js';
3
4
4
5
/** @module StructTypeNode **/
5
6
7
+
/**
8
+
* Generates a layout for struct members.
9
+
* This function takes an object representing struct members and returns an array of member layouts.
10
+
* Each member layout includes the member's name, type, and whether it is atomic.
11
+
*
12
+
* @param {Object.<string, string|Object>} members - An object where keys are member names and values are either types (as strings) or objects with type and atomic properties.
13
+
* @returns {Array.<{name: string, type: string, atomic: boolean}>} An array of member layouts.
0 commit comments