Enable flatbuffer to initialize Parser from bfbs (#4283) (#5077)

* Enable flatbuffer to initialize Parser from bfbs (#4283)

Now its possible to generate json data from bfbs data type and flatbuffers data
and visa versa.

* add deserialize functionality in parser from bfbs
* add small usage sample

* Fix build break

* Merge branch 'pr/1' into fix-issue4283

* Fix buildbreak

* Build monster_test.bfbs with --bfbs-builtins

Attribute flexbuffer has be included in bfbs. Only with this attribute test
will run. By initialization a parser by a bfbs the attribute has to be known
for this filed. monsterdata_test.golden has a flexbuffer field so parse would
fail.

* Fix generate_code.sh

* Revert automatic indent changes by IDE

* Auto detect size prefixed binary schema files

* Use identifier (bfbs) to detect schema files
12 files changed
tree: faf803f2d8b826a77be2b3b4368ade225486161b
  1. .appveyor/
  2. .github/
  3. .travis/
  4. android/
  5. CMake/
  6. conan/
  7. dart/
  8. docs/
  9. go/
  10. grpc/
  11. include/
  12. java/
  13. js/
  14. lobster/
  15. lua/
  16. net/
  17. php/
  18. python/
  19. reflection/
  20. rust/
  21. samples/
  22. src/
  23. tests/
  24. .clang-format
  25. .editorconfig
  26. .gitattributes
  27. .gitignore
  28. .travis.yml
  29. appveyor.yml
  30. BUILD
  31. build_defs.bzl
  32. CMakeLists.txt
  33. composer.json
  34. conanfile.py
  35. CONTRIBUTING.md
  36. LICENSE.txt
  37. package.json
  38. pom.xml
  39. readme.md
  40. WORKSPACE
readme.md

logo FlatBuffers

Join the chat at https://gitter.im/google/flatbuffers Build Status Build status

FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.

Go to our landing page to browse our documentation.

Supported operating systems

  • Windows
  • MacOS X
  • Linux
  • Android
  • And any others with a recent C++ compiler.

Supported programming languages

  • C++
  • C#
  • C
  • Dart
  • Go
  • Java
  • JavaScript
  • Lobster
  • Lua
  • PHP
  • Python
  • Rust
  • TypeScript

and more in progress...

Contribution

To contribute to this project, see CONTRIBUTING.

Licensing

Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.