flatbuffers/dart
Ivan Dlugos 4e3a66c141
Dart object API (#6682)
* dart test scripts - generate with `--gen-object-api`

* Dart object API, pack and unpack methods (WIP)

* Dart flatc - extract Builder code to separate functions to reuse it in Pack()

* Dart flatc - use builder field-building implementation in pack()

* Dart flatc - add pack() as an intance method of the "T" class

* Dart object API - make inner fields unpacked as well

* Dart object API - use pack() when collecting field offsets

* Dart object API - use packOnce() for fields that are structs or vectors of structs

* Dart object API - remove obsolete union support TODO

* Dart object API - minor review changes, test and fixes

* Dart object API - revert packOnce() - not supported by other object API implementations

* Dart object API - update docs

* update dart generated code in tests/ to fix CI failure on ./scripts/check-generated-code.sh

* Dart flatc - fix compilation for old MSVC and c++0x
2021-06-14 10:15:56 -07:00
..
example Fix up scripts, fix generated enum value for strong mode, regenerate files (#6389) 2021-01-07 14:51:52 -08:00
lib dart - change Builder.reset() to reuse an existing buffer (#6661) 2021-06-13 08:07:08 -07:00
test Dart object API (#6682) 2021-06-14 10:15:56 -07:00
CHANGELOG.md Ensure strings are null terminated when written from Dart (#4862) 2018-08-09 09:50:54 -07:00
LICENSE Add [Dart] support (#4676) 2018-05-18 11:06:15 -07:00
README.md Add [Dart] support (#4676) 2018-05-18 11:06:15 -07:00
publish.sh Fix up scripts, fix generated enum value for strong mode, regenerate files (#6389) 2021-01-07 14:51:52 -08:00
pubspec.yaml Updated main version numbers to 2.0 2021-05-10 11:14:47 -07:00

README.md

FlatBuffers for Dart

This package is used to read and write FlatBuffer files in Dart.

Most consumers will want to use the flatc compiler to generate Dart code from a FlatBuffers IDL schema. For example, the monster_my_game.sample_generated.dart was generated with flatc from monster.fbs in the example folder. The generated classes can be used to read or write binary files that are interoperable with other languages and platforms supported by FlatBuffers, as illustrated in the example.dart in the examples folder.

Additional documentation and examples are available at the FlatBuffers site