mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
* adds code generation fuzzer target. * add buffer verification * add table verification in codegen fuzzer --------- Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com>
24 lines
290 B
Plaintext
24 lines
290 B
Plaintext
namespace Example;
|
|
|
|
enum Status:byte { Active, Inactive, Pending }
|
|
|
|
struct Point {
|
|
x:int;
|
|
y:int;
|
|
}
|
|
|
|
table User {
|
|
id:uint;
|
|
name:string;
|
|
points:[Point];
|
|
status:Status = Active;
|
|
metadata:[string];
|
|
}
|
|
|
|
table Group {
|
|
name:string;
|
|
users:[User];
|
|
leader:User;
|
|
}
|
|
|
|
root_type Group; |