Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Flatbuffers | 21,434 | 1,589 | 2 days ago | 250 | May 26, 2023 | 152 | apache-2.0 | C++ | ||
FlatBuffers: Memory Efficient Serialization Library | ||||||||||
Hprose Php | 1,970 | 54 | 38 | 3 months ago | 49 | March 30, 2020 | 41 | mit | PHP | |
Hprose is a cross-language RPC. This project is Hprose 3.0 for PHP | ||||||||||
Hprose Golang | 1,241 | 2 | 12 | 3 months ago | 138 | September 13, 2023 | 3 | mit | Go | |
Hprose is a cross-language RPC. This project is Hprose for Golang. | ||||||||||
Delphimvcframework | 1,127 | 4 days ago | 44 | apache-2.0 | Pascal | |||||
DMVCFramework (for short) is a popular and powerful framework for WEB API in Delphi. Supports RESTful and JSON-RPC WEB APIs development. | ||||||||||
Msgpack Rpc | 657 | 6 years ago | 6 | Ruby | ||||||
MessagePack-RPC is an inter-process messaging library that uses MessagePack for object serialization. | ||||||||||
Hprose Java | 534 | 42 | 7 | 3 years ago | 49 | April 23, 2018 | 11 | mit | Java | |
Hprose is a cross-language RPC. This project is Hprose 2.0 for Java | ||||||||||
Hprose Nodejs | 282 | 23 | 29 | 5 years ago | 73 | June 14, 2018 | 8 | mit | JavaScript | |
Hprose is a cross-language RPC. This project is Hprose 2.0 for Node.js | ||||||||||
Hprose Html5 | 234 | 2 | 5 | 6 years ago | 19 | April 24, 2018 | 4 | mit | JavaScript | |
Hprose is a cross-language RPC. This project is Hprose 2.0 Client for HTML5 | ||||||||||
Hprose Js | 124 | 6 | 2 | 6 years ago | 20 | February 02, 2018 | 4 | mit | JavaScript | |
Hprose is a cross-language RPC. This project is Hprose 2.0 RPC for JavaScript | ||||||||||
Hprose Delphi | 111 | a year ago | mit | Pascal | ||||||
Hprose is a cross-language RPC. This project is Hprose 2.0 for Delphi and FreePascal |
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.
Build the compiler for flatbuffers (flatc
)
Use cmake
to create the build files for your platform and then perform the compliation (Linux example).
cmake -G "Unix Makefiles"
make -j
Define your flatbuffer schema (.fbs
)
Write the schema to define the data you want to serialize. See monster.fbs for an example.
Generate code for your language(s)
Use the flatc
compiler to take your schema and generate language-specific code:
./flatc --cpp --rust monster.fbs
Which generates monster_generated.h
and monster_generated.rs
files.
Serialize data
Use the generated code, as well as the FlatBufferBuilder
to construct your serialized buffer. (C++
example)
Transmit/store/save Buffer
Use your serialized buffer however you want. Send it to someone, save it for later, etc...
Read the data
Use the generated accessors to read the data from the serialized buffer.
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 reading the data written by C++
.
Go to our landing page to browse our documentation.
Code generation and runtime libraries for many popular languages.
FlatBuffers does not follow traditional SemVer versioning (see rationale) but rather uses a format of the date of the release.
flatbuffers
tag for any questions regarding FlatBuffers.To contribute to this project, see CONTRIBUTING.
Please see our Security Policy for reporting vulnerabilities.
Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.