Commit | Line | Data |
---|---|---|
258d968e MD |
1 | /* CTF 1.8 */ |
2 | typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; | |
3 | typealias integer { size = 16; align = 8; signed = false; base = 10; } := uint16_t; | |
4 | typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; | |
5 | typealias string { encoding = ascii; } := str; | |
6 | ||
7 | trace { | |
83fcdab0 FD |
8 | major = 1; |
9 | minor = 8; | |
258d968e MD |
10 | uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; |
11 | byte_order = le; | |
12 | packet.header := struct { | |
13 | uint32_t magic; | |
14 | uint8_t uuid[0x10]; | |
15 | }; | |
16 | }; | |
17 | ||
18 | struct Mystruct { | |
19 | ||
20 | str tag; | |
21 | ||
22 | variant <tag> { | |
23 | } field; | |
24 | ||
25 | }; |