• Home
Name Date Size #Lines LOC

..--

.bazelci/04-Jul-2025-6160

.github/04-Jul-2025-1,060912

CMake/04-Jul-2025-654588

android/04-Jul-2025-1,2601,033

bazel/04-Jul-2025-

benchmarks/04-Jul-2025-1,090900

conan/04-Jul-2025-13280

dart/04-Jul-2025-10,2649,023

docs/04-Jul-2025-8,7706,624

docs-old/04-Jul-2025-11,6819,485

examples/go-echo/04-Jul-2025-410325

go/04-Jul-2025-1,7851,108

goldens/04-Jul-2025-2,3051,676

grpc/04-Jul-2025-9,0677,293

include/04-Jul-2025-13,2389,186

java/04-Jul-2025-8,6265,256

js/04-Jul-2025-11

kotlin/04-Jul-2025-9,0055,723

lobster/04-Jul-2025-313262

lua/04-Jul-2025-1,132892

mjs/04-Jul-2025-11

net/FlatBuffers/04-Jul-2025-3,3362,053

nim/04-Jul-2025-467373

php/04-Jul-2025-1,691875

python/04-Jul-2025-4,7403,324

reflection/04-Jul-2025-187165

rust/04-Jul-2025-11,3118,523

samples/04-Jul-2025-4,8923,527

scripts/04-Jul-2025-952673

snap/04-Jul-2025-5042

src/04-Jul-2025-41,30833,855

swift/04-Jul-2025-4,1672,271

tests/04-Jul-2025-186,102157,892

ts/04-Jul-2025-3,3492,693

.bazelignoreD04-Jul-2025102 64

.bazelrcD04-Jul-20251.1 KiB1918

.clang-formatD04-Jul-2025304 1412

.clang-tidyD04-Jul-202515.4 KiB348345

.editorconfigD04-Jul-2025255 98

.eslintrc.jsD04-Jul-2025253 1311

.gitattributesD04-Jul-202585 32

.gitignoreD04-Jul-20252.5 KiB159158

.npmrcD04-Jul-202512 21

Android.bpD04-Jul-20254.4 KiB172156

BUILD.bazelD04-Jul-20253.1 KiB128115

CHANGELOG.mdD04-Jul-20257.8 KiB180128

CMakeLists.txtD04-Jul-202523.4 KiB723644

CONTRIBUTING.mdD04-Jul-20252.2 KiB4337

FlatBuffers.podspecD04-Jul-20251,000 2520

Formatters.mdD04-Jul-20251.1 KiB2212

LICENSED04-Jul-202511.1 KiB203169

METADATAD04-Jul-2025712 2119

MODULE.bazelD04-Jul-20251.6 KiB7873

MODULE_LICENSE_APACHE2D04-Jul-20250

OWNERSD04-Jul-2025185 54

Package.swiftD04-Jul-2025979 3718

README.androidD04-Jul-2025281 119

README.mdD04-Jul-20254.8 KiB11778

SECURITY.mdD04-Jul-2025481 128

TEST_MAPPINGD04-Jul-2025513 2928

build_defs.bzlD04-Jul-202511.2 KiB293273

composer.jsonD04-Jul-2025377 1818

conanfile.pyD04-Jul-20253 KiB7664

extensions.bzlD04-Jul-2025604 2016

package.jsonD04-Jul-20251.2 KiB4645

pnpm-lock.yamlD04-Jul-202539.4 KiB1,1831,026

swift.swiftformatD04-Jul-20251.4 KiB2722

tsconfig.jsonD04-Jul-2025289 1615

tsconfig.mjs.jsonD04-Jul-2025323 1716

typescript.bzlD04-Jul-20253.3 KiB9184

README.android

1URL: https://github.com/google/flatbuffers/releases/tag/v1.6.0
2Version: 1.6.0
3License: Apache License, Version 2.0
4License File: LICENSE
5Owners: siyamed
6
7Description:
8Cross platform serialization library. Used to read the metadata in a font.
9
10Local Modifications:
11No modifications.

README.md

1![logo](http://google.github.io/flatbuffers/fpl_logo_small.png) FlatBuffers
2===========
3
4![Build status](https://github.com/google/flatbuffers/actions/workflows/build.yml/badge.svg?branch=master)
5[![BuildKite status](https://badge.buildkite.com/7979d93bc6279aa539971f271253c65d5e8fe2fe43c90bbb25.svg)](https://buildkite.com/bazel/flatbuffers)
6[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/flatbuffers.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:flatbuffers)
7[![Discord Chat](https://img.shields.io/discord/656202785926152206.svg)](https:///discord.gg/6qgKs3R)
8[![Twitter Follow](https://img.shields.io/twitter/follow/wvo.svg?style=social)](https://twitter.com/wvo)
9[![Twitter Follow](https://img.shields.io/twitter/follow/dbaileychess.svg?style=social)](https://twitter.com/dbaileychess)
10
11
12**FlatBuffers** is a cross platform serialization library architected for
13maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.
14
15## Quick Start
16
171. Build the compiler for flatbuffers (`flatc`)
18
19    Use `cmake` to create the build files for your platform and then perform the compilation (Linux example).
20
21    ```
22    cmake -G "Unix Makefiles"
23    make -j
24    ```
25
262. Define your flatbuffer schema (`.fbs`)
27
28    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.
29
303. Generate code for your language(s)
31
32    Use the `flatc` compiler to take your schema and generate language-specific code:
33
34    ```
35    ./flatc --cpp --rust monster.fbs
36    ```
37
38    Which generates `monster_generated.h` and `monster_generated.rs` files.
39
404. Serialize data
41
42    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))
43
445. Transmit/store/save Buffer
45
46    Use your serialized buffer however you want. Send it to someone, save it for later, etc...
47
486. Read the data
49
50    Use the generated accessors to read the data from the serialized buffer.
51
52    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++`.
53
54## Documentation
55
56**Go to our [landing page][] to browse our documentation.**
57
58## Supported operating systems
59- Windows
60- macOS
61- Linux
62- Android
63- And any others with a recent C++ compiler (C++ 11 and newer)
64
65## Supported programming languages
66
67Code generation and runtime libraries for many popular languages.
68
691. C
701. C++ - [snapcraft.io](https://snapcraft.io/flatbuffers)
711. C# - [nuget.org](https://www.nuget.org/packages/Google.FlatBuffers)
721. Dart - [pub.dev](https://pub.dev/packages/flat_buffers)
731. Go - [go.dev](https://pkg.go.dev/github.com/google/flatbuffers)
741. Java - [Maven](https://search.maven.org/artifact/com.google.flatbuffers/flatbuffers-java)
751. JavaScript - [NPM](https://www.npmjs.com/package/flatbuffers)
761. Kotlin
771. Lobster
781. Lua
791. PHP
801. Python - [PyPI](https://pypi.org/project/flatbuffers/)
811. Rust - [crates.io](https://crates.io/crates/flatbuffers)
821. Swift - [swiftpackageindex](https://swiftpackageindex.com/google/flatbuffers)
831. TypeScript - [NPM](https://www.npmjs.com/package/flatbuffers)
841. Nim
85
86## Versioning
87
88FlatBuffers 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.
89
90## Contribution
91
92* [FlatBuffers Issues Tracker][] to submit an issue.
93* [stackoverflow.com][] with [`flatbuffers` tag][] for any questions regarding FlatBuffers.
94
95*To contribute to this project,* see [CONTRIBUTING][].
96
97## Community
98
99* [Discord Server](https:///discord.gg/6qgKs3R)
100
101## Security
102
103Please see our [Security Policy](SECURITY.md) for reporting vulnerabilities.
104
105## Licensing
106*Flatbuffers* is licensed under the Apache License, Version 2.0. See [LICENSE][] for the full license text.
107
108<br>
109
110   [CONTRIBUTING]: http://github.com/google/flatbuffers/blob/master/CONTRIBUTING.md
111   [`flatbuffers` tag]: https://stackoverflow.com/questions/tagged/flatbuffers
112   [FlatBuffers Google Group]: https://groups.google.com/forum/#!forum/flatbuffers
113   [FlatBuffers Issues Tracker]: http://github.com/google/flatbuffers/issues
114   [stackoverflow.com]: http://stackoverflow.com/search?q=flatbuffers
115   [landing page]: https://google.github.io/flatbuffers
116   [LICENSE]: https://github.com/google/flatbuffers/blob/master/LICENSE
117