Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* tests data packing and unpacking */ |
michael@0 | 2 | |
michael@0 | 3 | struct msg { |
michael@0 | 4 | string /* sender */ from_name = 1; /* be verbose */ |
michael@0 | 5 | string to_name = 2; |
michael@0 | 6 | optional struct[kill] attack = 3; |
michael@0 | 7 | array struct[run] run = 4; |
michael@0 | 8 | } |
michael@0 | 9 | |
michael@0 | 10 | struct kill { |
michael@0 | 11 | string weapon = 0x10121; |
michael@0 | 12 | string action = 2; |
michael@0 | 13 | array int how_often = 3; |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | struct run { |
michael@0 | 17 | string how = 1; |
michael@0 | 18 | optional bytes some_bytes = 2; |
michael@0 | 19 | |
michael@0 | 20 | bytes fixed_bytes[24] = 3; |
michael@0 | 21 | array string notes = 4; |
michael@0 | 22 | |
michael@0 | 23 | optional int64 large_number = 5; |
michael@0 | 24 | array int other_numbers = 6; |
michael@0 | 25 | } |