Skip to content

Commit 9baa4f7

Browse files
committed
restruct
1 parent 8e16962 commit 9baa4f7

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
11
# data-struct
22

33
Convert between JS object and Node.js buffer
4+
5+
```
6+
{
7+
propname: DataTypes.uint
8+
propname2: [DataTypes.list, DataTypes.string]
9+
propname3: [{
10+
propname: [{
11+
propname: DataTypes.uint
12+
}]
13+
propname4: [DataTypes.list, DataTypes.uint]
14+
}],
15+
propname5: [DataTypes.struct, {
16+
propname: propvalue
17+
}],
18+
propname6: [DataTypes.list,
19+
{
20+
list: []
21+
}
22+
]
23+
24+
}
25+
26+
27+
{
28+
propname: 42
29+
propname2: ['42','43','45']
30+
propname3: [
31+
{
32+
propname: [1,2,3]
33+
},
34+
{
35+
propname: [1,2,3]
36+
},
37+
],
38+
propname4: [
39+
[1,2,3],
40+
[1,2,3],
41+
[1,2,3]
42+
]
43+
44+
}
45+
```

0 commit comments

Comments
 (0)