| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| CMake/ | 06-May-2025 | - | 654 | 588 | ||
| android/ | 06-May-2025 | - | 1,260 | 1,033 | ||
| bazel/ | 06-May-2025 | - | ||||
| benchmarks/ | 06-May-2025 | - | 1,070 | 881 | ||
| conan/ | 06-May-2025 | - | 132 | 80 | ||
| dart/ | 06-May-2025 | - | 10,379 | 9,115 | ||
| docs/ | 06-May-2025 | - | 11,638 | 9,451 | ||
| examples/go-echo/ | 06-May-2025 | - | 410 | 325 | ||
| go/ | 06-May-2025 | - | 1,785 | 1,108 | ||
| goldens/ | 06-May-2025 | - | 2,305 | 1,676 | ||
| grpc/ | 06-May-2025 | - | 8,560 | 6,875 | ||
| include/flatbuffers/ | 06-May-2025 | - | 12,489 | 8,651 | ||
| java/ | 06-May-2025 | - | 8,626 | 5,256 | ||
| js/ | 06-May-2025 | - | 1 | 1 | ||
| kotlin/ | 06-May-2025 | - | 8,897 | 5,635 | ||
| lobster/ | 06-May-2025 | - | 313 | 262 | ||
| lua/ | 06-May-2025 | - | 1,132 | 892 | ||
| mjs/ | 06-May-2025 | - | 1 | 1 | ||
| net/FlatBuffers/ | 06-May-2025 | - | 3,336 | 2,053 | ||
| nim/ | 06-May-2025 | - | 467 | 373 | ||
| php/ | 06-May-2025 | - | 1,691 | 875 | ||
| python/ | 06-May-2025 | - | 4,741 | 3,325 | ||
| reflection/ | 06-May-2025 | - | 188 | 166 | ||
| rust/ | 06-May-2025 | - | 6,907 | 4,941 | ||
| samples/ | 06-May-2025 | - | 4,888 | 3,523 | ||
| scripts/ | 06-May-2025 | - | 916 | 658 | ||
| snap/ | 06-May-2025 | - | 50 | 42 | ||
| src/ | 06-May-2025 | - | 41,109 | 33,589 | ||
| swift/ | 06-May-2025 | - | 4,226 | 2,335 | ||
| tests/ | 06-May-2025 | - | 161,866 | 135,938 | ||
| ts/ | 06-May-2025 | - | 2,117 | 1,620 | ||
| BUILD.bazel | D | 06-May-2025 | 3.5 KiB | 140 | 125 | |
| BUILD.gn | D | 06-May-2025 | 3.2 KiB | 66 | 63 | |
| CHANGELOG.md | D | 06-May-2025 | 7.4 KiB | 169 | 121 | |
| CMakeLists.txt | D | 06-May-2025 | 23.3 KiB | 719 | 640 | |
| CONTRIBUTING.md | D | 06-May-2025 | 2.2 KiB | 43 | 37 | |
| FlatBuffers.podspec | D | 06-May-2025 | 912 | 22 | 17 | |
| Formatters.md | D | 06-May-2025 | 1.1 KiB | 22 | 12 | |
| LICENSE | D | 06-May-2025 | 11.1 KiB | 203 | 169 | |
| LICENSE.txt | D | 06-May-2025 | 11.1 KiB | 203 | 169 | |
| OAT.xml | D | 06-May-2025 | 5.6 KiB | 76 | 26 | |
| Package.swift | D | 06-May-2025 | 979 | 37 | 18 | |
| Package@swift-5.5.swift | D | 06-May-2025 | 980 | 38 | 18 | |
| README.OpenSource | D | 06-May-2025 | 343 | 12 | 11 | |
| README.md | D | 06-May-2025 | 5.1 KiB | 119 | 80 | |
| README_zh.md | D | 06-May-2025 | 2.8 KiB | 74 | 62 | |
| SECURITY.md | D | 06-May-2025 | 481 | 12 | 8 | |
| WORKSPACE | D | 06-May-2025 | 5.3 KiB | 170 | 130 | |
| build_defs.bzl | D | 06-May-2025 | 10.9 KiB | 285 | 267 | |
| bundle.json | D | 06-May-2025 | 1.1 KiB | 46 | 45 | |
| composer.json | D | 06-May-2025 | 377 | 18 | 18 | |
| conanfile.py | D | 06-May-2025 | 3 KiB | 76 | 64 | |
| install.py | D | 06-May-2025 | 1.5 KiB | 55 | 27 | |
| package.json | D | 06-May-2025 | 1.2 KiB | 46 | 45 | |
| pnpm-lock.yaml | D | 06-May-2025 | 39.4 KiB | 1,183 | 1,026 | |
| swift.swiftformat | D | 06-May-2025 | 1.4 KiB | 27 | 22 | |
| tsconfig.json | D | 06-May-2025 | 289 | 16 | 15 | |
| tsconfig.mjs.json | D | 06-May-2025 | 323 | 17 | 16 | |
| typescript.bzl | D | 06-May-2025 | 3.3 KiB | 91 | 84 |
README.OpenSource
1[ 2 { 3 "Name": "flatbuffers", 4 "License": "Apache-2.0", 5 "License File": "LICENSE.txt", 6 "Version Number": "24.3.25", 7 "Owner": "chengfeng27@huawei.com", 8 "Upstream URL": "https://github.com/google/flatbuffers/archive/refs/tags/v24.3.25.tar.gz", 9 "Description": "FlatBuffers: Memory Efficient Serialization Library" 10 } 11] 12
README.md
1 FlatBuffers 2=========== 3 4 5[](https://buildkite.com/bazel/flatbuffers) 6[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:flatbuffers) 7[](https://api.securityscorecards.dev/projects/github.com/google/flatbuffers) 8[](https://gitter.im/google/flatbuffers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 9[](https:///discord.gg/6qgKs3R) 10[](https://twitter.com/wvo) 11[](https://twitter.com/dbaileychess) 12 13 14**FlatBuffers** is a cross platform serialization library architected for 15maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility. 16 17## Quick Start 18 191. Build the compiler for flatbuffers (`flatc`) 20 21 Use `cmake` to create the build files for your platform and then perform the compliation (Linux example). 22 23 ``` 24 cmake -G "Unix Makefiles" 25 make -j 26 ``` 27 282. Define your flatbuffer schema (`.fbs`) 29 30 Write the [schema](https://flatbuffers.dev/flatbuffers_guide_writing_schema.html) to define the data you want to serialize. See [monster.fbs](https://github.com/google/flatbuffers/blob/master/samples/monster.fbs) for an example. 31 323. Generate code for your language(s) 33 34 Use the `flatc` compiler to take your schema and generate language-specific code: 35 36 ``` 37 ./flatc --cpp --rust monster.fbs 38 ``` 39 40 Which generates `monster_generated.h` and `monster_generated.rs` files. 41 424. Serialize data 43 44 Use the generated code, as well as the `FlatBufferBuilder` to construct your serialized buffer. ([`C++` example](https://github.com/google/flatbuffers/blob/master/samples/sample_binary.cpp#L24-L56)) 45 465. Transmit/store/save Buffer 47 48 Use your serialized buffer however you want. Send it to someone, save it for later, etc... 49 506. Read the data 51 52 Use the generated accessors to read the data from the serialized buffer. 53 54 It doesn't need to be the same language/schema version, FlatBuffers ensures the data is readable across languages and schema versions. See the [`Rust` example](https://github.com/google/flatbuffers/blob/master/samples/sample_binary.rs#L92-L106) reading the data written by `C++`. 55 56## Documentation 57 58**Go to our [landing page][] to browse our documentation.** 59 60## Supported operating systems 61- Windows 62- macOS 63- Linux 64- Android 65- And any others with a recent C++ compiler (C++ 11 and newer) 66 67## Supported programming languages 68 69Code generation and runtime libraries for many popular languages. 70 711. C 721. C++ - [snapcraft.io](https://snapcraft.io/flatbuffers) 731. C# - [nuget.org](https://www.nuget.org/packages/Google.FlatBuffers) 741. Dart - [pub.dev](https://pub.dev/packages/flat_buffers) 751. Go - [go.dev](https://pkg.go.dev/github.com/google/flatbuffers) 761. Java - [Maven](https://search.maven.org/artifact/com.google.flatbuffers/flatbuffers-java) 771. JavaScript - [NPM](https://www.npmjs.com/package/flatbuffers) 781. Kotlin 791. Lobster 801. Lua 811. PHP 821. Python - [PyPI](https://pypi.org/project/flatbuffers/) 831. Rust - [crates.io](https://crates.io/crates/flatbuffers) 841. Swift - [swiftpackageindex](https://swiftpackageindex.com/google/flatbuffers) 851. TypeScript - [NPM](https://www.npmjs.com/package/flatbuffers) 861. Nim 87 88## Versioning 89 90FlatBuffers does not follow traditional SemVer versioning (see [rationale](https://github.com/google/flatbuffers/wiki/Versioning)) but rather uses a format of the date of the release. 91 92## Contribution 93 94* [FlatBuffers Issues Tracker][] to submit an issue. 95* [stackoverflow.com][] with [`flatbuffers` tag][] for any questions regarding FlatBuffers. 96 97*To contribute to this project,* see [CONTRIBUTING][]. 98 99## Community 100 101* [Discord Server](https:///discord.gg/6qgKs3R) 102 103## Security 104 105Please see our [Security Policy](SECURITY.md) for reporting vulnerabilities. 106 107## Licensing 108*Flatbuffers* is licensed under the Apache License, Version 2.0. See [LICENSE][] for the full license text. 109 110<br> 111 112 [CONTRIBUTING]: http://github.com/google/flatbuffers/blob/master/CONTRIBUTING.md 113 [`flatbuffers` tag]: https://stackoverflow.com/questions/tagged/flatbuffers 114 [FlatBuffers Google Group]: https://groups.google.com/forum/#!forum/flatbuffers 115 [FlatBuffers Issues Tracker]: http://github.com/google/flatbuffers/issues 116 [stackoverflow.com]: http://stackoverflow.com/search?q=flatbuffers 117 [landing page]: https://google.github.io/flatbuffers 118 [LICENSE]: https://github.com/google/flatbuffers/blob/master/LICENSE 119
README_zh.md
1 FlatBuffers 2=========== 3 4[](https://travis-ci.org/google/flatbuffers) 5[](https://ci.appveyor.com/project/gwvo/flatbuffers) 6[](https://gitter.im/google/flatbuffers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 7[](https:///discord.gg/6qgKs3R) 8[](https://twitter.com/wvo) 9 10 11**FlatBuffers** 是一个高内存效率的跨平台序列化库。 它允许您直接访问序列化数据而无需先对其进行解析/解包,同时仍然具有出色的向前/向后兼容性。 12 13**转到我们的 [landing page][] 浏览我们的文档** 14 15## 支持的操作系统 16* Windows 17* MacOS X 18* Linux 19* Android 20* And any others with a recent C++ compiler. 21 22## 支持的编程语言 23* C++ 24* C# 25* C 26* Dart 27* Go 28* Java 29* JavaScript 30* Lobster 31* Lua 32* PHP 33* Python 34* Rust 35* TypeScript 36 37*and more in progress...* 38## FlatBuffers使用步骤 391. 按照[教程](docs/source/Tutorial.md)编写fbs文件,生成C/C++的代码可以参考[C教程](docs/source/CppUsage.md)和[C++教程](docs/source/CUsage.md)。 402. 按照[教程](docs/source/Building.md)编译项目,并得到flactc工具。 413. 使用flatc工具生成接口代码。 424. 在鸿蒙中使用FlatBuffers 43## OpenHarmony如何集成FlatBuffers 441. 头文件引入 45```c++ 46#include "flatbuffers/flatbuffers.h" 47``` 482. BUILD.gn添加头文件的引用 49```gn 50include_dirs = [ 51 "//third_party/flatbuffers/include" 52 ] 53``` 543. 在代码中使用生成的接口代码序列化和反序列化数据。 55## 贡献 56* [FlatBuffers Google Group][] to discuss FlatBuffers with other developers and users. 57* [FlatBuffers Issues Tracker][] to submit an issue. 58* [stackoverflow.com][] with [`flatbuffers` tag][] for any questions regarding FlatBuffers. 59 60*To contribute to this project,* see [CONTRIBUTING][]. 61 62## 许可 63*Flatbuffers* is licensed under the Apache License, Version 2.0. See [LICENSE][] for the full license text. 64 65<br> 66 67 [CONTRIBUTING]: http://github.com/google/flatbuffers/blob/master/CONTRIBUTING.md 68 [`flatbuffers` tag]: https://stackoverflow.com/questions/tagged/flatbuffers 69 [FlatBuffers Google Group]: https://groups.google.com/forum/#!forum/flatbuffers 70 [FlatBuffers Issues Tracker]: http://github.com/google/flatbuffers/issues 71 [stackoverflow.com]: http://stackoverflow.com/search?q=flatbuffers 72 [landing page]: https://google.github.io/flatbuffers 73 [LICENSE]: https://github.com/google/flatbuffers/blob/master/LICENSE.txt 74