mirror of https://github.com/vee1e/flatbuffers - FlatBuffers: Memory Efficient Serialization Library
Find a file
Denis Blank 72aa85a759
[C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520)
* [C++] Add a failing unit test for #7516 (Rare bad buffer content alignment if sizeof(T) != alignof(T))

* [C++] Fix final buffer alignment when using an array of structs
* A struct can have an arbitrary size and therefore sizeof(struct) == alignof(struct)
  does not hold anymore as for value primitives.
* This patch fixes this by introducing alignment parameters to various
  CreateVector*/StartVector calls.
* Closes #7516
2022-09-21 11:05:05 -07:00
.bazelci [swift] Add bazel configuration for Swift (#7195) 2022-03-29 21:30:33 -07:00
.github [TS/JS] Move TS tests to dedicated folder and deps upgrade (#7508) 2022-09-12 20:03:23 -07:00
android Replace bash JavaTest.sh with mvn test (#7500) 2022-09-11 17:46:46 -07:00
bazel
benchmarks Started to migrate to target_compile_options (#7222) 2022-04-06 13:25:43 -07:00
CMake [CMake]: fix breaking find_package change (#7499) (#7502) 2022-09-01 10:28:59 -07:00
conan remove travis config (#7522) 2022-09-10 12:36:51 -07:00
dart FlatBuffers Version 2.0.8 (#7492) 2022-08-29 20:43:36 -07:00
docs Moves all of the swift test code into tests/swift (#7509) 2022-09-09 22:35:42 -07:00
go
grpc [TS/JS] Move TS tests to dedicated folder and deps upgrade (#7508) 2022-09-12 20:03:23 -07:00
include/flatbuffers [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
java Bump junit from 4.13 to 4.13.1 in /java (#7526) 2022-09-11 19:56:51 -07:00
js
kotlin Replace bash JavaTest.sh with mvn test (#7500) 2022-09-11 17:46:46 -07:00
lobster [Lobster] file_identifier support 2022-03-08 15:39:12 -08:00
lua [Lua] manipulate byte array as string (#6624) 2021-05-07 22:57:13 -07:00
mjs
net/FlatBuffers [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
php
python FlatBuffers Version 2.0.8 (#7492) 2022-08-29 20:43:36 -07:00
reflection [TS/Bazel] Minor improvements to typescript.bzl (#7300) 2022-08-05 22:04:05 -07:00
rust Rust: fix a name conflict when building with "no_std" feature (#7268) 2022-04-25 13:09:41 -04:00
samples UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
scripts [TS/JS] Move TS tests to dedicated folder and deps upgrade (#7508) 2022-09-12 20:03:23 -07:00
snap use improved versioning (#6691) 2021-06-11 15:27:59 -07:00
src [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
swift Fixes issue with cocoapods failing to be published because of docc (#7505) 2022-09-01 11:44:13 -07:00
tests [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
ts Fix typos (#7483) 2022-08-26 14:35:21 -07:00
.clang-format
.editorconfig
.eslintrc.js
.gitattributes
.gitignore Replace bash JavaTest.sh with mvn test (#7500) 2022-09-11 17:46:46 -07:00
BUILD.bazel code gen flexbuffer verifier (#7207) 2022-04-05 16:29:42 -07:00
build_defs.bzl Move flatbuffer_ts_library to typescript.bzl (#7183) 2022-03-22 21:41:39 -07:00
CHANGELOG.md FlatBuffers Version 2.0.8 (#7492) 2022-08-29 20:43:36 -07:00
CMakeLists.txt [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
composer.json
conanfile.py
CONTRIBUTING.md
Formatters.md Ran clang-format-all.sh. Removed default --style=file parameter (#6639) 2021-05-15 12:54:08 -07:00
LICENSE.txt
package.json [TS/JS] Move TS tests to dedicated folder and deps upgrade (#7508) 2022-09-12 20:03:23 -07:00
readme.md Updated Readme 2022-09-03 08:05:36 -07:00
rollup.config.js [TS/JS] Add rollup and config to generate iife flatbuffers bundle (#7449) 2022-08-29 16:37:43 -07:00
SECURITY.md Create Security.md 2021-05-19 11:55:50 -07:00
swift.swiftformat Improves documentation, and adding DocC (#6784) 2021-09-27 20:59:19 +02:00
tsconfig.json
tsconfig.mjs.json
typescript.bzl [TS/Bazel] Minor improvements to typescript.bzl (#7300) 2022-08-05 22:04:05 -07:00
WORKSPACE update grpc version (#7457) 2022-08-22 16:53:28 -07:00
yarn.lock [TS/JS] Move TS tests to dedicated folder and deps upgrade (#7508) 2022-09-12 20:03:23 -07:00

logo FlatBuffers

Build status Fuzzing Status OpenSSF Scorecard Join the chat at https://gitter.im/google/flatbuffers Discord Chat Twitter Follow 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 (C++ 11 and newer)

Supported programming languages

Code generation and runtime libraries for many popular languages.

  1. C
  2. C++ - snapcraft.io
  3. C# - nuget.org
  4. Dart - pub.dev
  5. Go - go.dev
  6. Java - Maven
  7. JavaScript - NPM
  8. Kotlin
  9. Lobster
  10. Lua
  11. PHP
  12. Python - PyPi
  13. Rust - crates.io
  14. Swift
  15. TypeScript - NPM

and more in progress...

  1. Nim

Contribution

To contribute to this project, see CONTRIBUTING.

Community

Security

Please see our Security Policy for reporting vulnerabilities.

Licensing

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