mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
99a1063e73
svn:r856
26 lines
435 B
Plaintext
26 lines
435 B
Plaintext
/* tests data packing and unpacking */
|
|
|
|
struct msg {
|
|
string from_name = 1;
|
|
string to_name = 2;
|
|
optional struct[kill] attack = 3;
|
|
array struct[run] run = 4;
|
|
}
|
|
|
|
struct kill {
|
|
string weapon = 0x10121;
|
|
string action = 2;
|
|
array int how_often = 3;
|
|
}
|
|
|
|
struct run {
|
|
string how = 1;
|
|
optional bytes some_bytes = 2;
|
|
|
|
bytes fixed_bytes[24] = 3;
|
|
array string notes = 4;
|
|
|
|
optional int64 large_number = 5;
|
|
array int other_numbers = 6;
|
|
}
|