mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-19 08:13:05 +00:00
Union Vector
This commit is contained in:
24
tests/union_vector/union_vector.fbs
Normal file
24
tests/union_vector/union_vector.fbs
Normal file
@@ -0,0 +1,24 @@
|
||||
table MuLan {
|
||||
sword_attack_damage: int;
|
||||
}
|
||||
|
||||
table Rapunzel {
|
||||
hair_length: int;
|
||||
}
|
||||
|
||||
table Belle {
|
||||
books_read: int;
|
||||
}
|
||||
|
||||
union Character {
|
||||
MuLan,
|
||||
Rapunzel,
|
||||
Belle,
|
||||
}
|
||||
|
||||
table Movie {
|
||||
characters: [Character];
|
||||
}
|
||||
|
||||
root_type Movie;
|
||||
file_identifier "MOVI";
|
||||
Reference in New Issue
Block a user