library example; | |
struct OneStringOfMaxLengthFive { | |
string:5 the_string; | |
}; | |
struct StructOnlyPrimitives { | |
int32 i; | |
bool b; | |
uint16 u; | |
}; | |
table TableOnlyPrimitives { | |
1: int32 i; | |
2: bool b; | |
3: uint16 u; | |
}; | |
xunion UnionOnlyPrimitives { | |
int32 i; | |
bool b; | |
uint16 u; | |
}; | |
xunion UnionWithTableStructString { | |
StructOnlyPrimitives struct; | |
TableOnlyPrimitives table; | |
UnionOnlyPrimitives union; | |
}; |