Clarify that FlatBuffers unions do not support scalars (#6416)

I mention that a common practice is to wrap the scalar value in a table
or a struct.

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 file changed
tree: 540e1ef91ec3de53fc31c21dda3b53143daf3000
  1. .appveyor/
  2. .bazelci/
  3. .github/
  4. .travis/
  5. android/
  6. bazel/
  7. CMake/
  8. conan/
  9. dart/
  10. docs/
  11. go/
  12. grpc/
  13. include/
  14. java/
  15. js/
  16. lobster/
  17. lua/
  18. mjs/
  19. net/
  20. php/
  21. python/
  22. reflection/
  23. rust/
  24. samples/
  25. snap/
  26. src/
  27. swift/
  28. tests/
  29. ts/
  30. .clang-format
  31. .editorconfig
  32. .eslintrc.js
  33. .gitattributes
  34. .gitignore
  35. .travis.yml
  36. appveyor.yml
  37. BUILD
  38. build_defs.bzl
  39. CMakeLists.txt
  40. composer.json
  41. conanfile.py
  42. CONTRIBUTING.md
  43. Formatters.md
  44. LICENSE.txt
  45. package.json
  46. pom.xml
  47. readme.md
  48. swift.swiftformat
  49. tsconfig.json
  50. tsconfig.mjs.json
  51. WORKSPACE
readme.md

logo FlatBuffers

Build Status Build status Join the chat at https://gitter.im/google/flatbuffers Discord Chat Twitter Follow

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.