Generate object-based C# accessor code from FlatBuffer schema
npm install fbagenstruct or table.
bash
$ npm install fbagen
$ node_modules/.bin/fbagen -n -o /path/to/accessors /path/to/flatbuffer/schema
`
$3
`bash
$ git clone https://github.com/wuyuntao/fbagen.git
$ cd fbagen
$ node index.js -n -o /path/to/accessors /path/to/flatbuffer/schema
`
$3
`bash
$ node index.js --help
Generate object-based C# accessor code from FlatBuffer schema
Usage
$ fbagen
Options
-o, --output-path Output generated files to path
-n, --csharp Generate C# code
Examples
$ fbagen -o GeneratedCode -n Schema.fbs
`
$3
fbagen provides several attributes to customize code generation.
* use_list: When this attribute is added to a Vector type, fbagen will use List as field type instead of Array.
Generated code style
You can find a sample schema and accessors here.
Todo-list
* Support union syntax
* Support include` syntax