flatbuffers
flatbuffers copied to clipboard
FlatBuffers: Memory Efficient Serialization Library
The generated `Create` methods are just collection of individual API calls that aren't particularly optimized. There must be some things we can avoid doing over and over again (e.g., reserve...
I modified `CMakeList.txt` with the following patch: ``` diff --git a/CMakeLists.txt b/CMakeLists.txt index 46bb734d..265a2bb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,14 @@ if(MSVC OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC") set(MSVC_LIKE ON)...
Consider the following schema `Data.fbs` and corresponding input data `data-in.json`: ``` table a { b:float; } root_type a; ``` ``` { b: 0.5078125 } ``` If I serialize the JSON...
This adds a `std::variant` getter accessor for tables' union fields. This is the idiomatic way to represent a type safe union in C++, and allows one to use `std::visit` on...
The main release tracker is at #6636, and this issue is just for Rust and its breaking changes. * [ ] Stop generating code with `#deperacated` markers, I promised they'd...
Golang's lib for flatbuffer encoding forces the user to pay the overhead for endianness transformation regardless of machine endianness - for example the code for writing a uint16 (currently [here](https://github.com/google/flatbuffers/blob/master/go/encode.go#L153)):...
The following safe code will segfault: ```rust fn main() { let ptr: &&u8 = flatbuffers::follow_cast_ref(&[1, 2, 3, 4, 5, 6, 7, 8], 0); println!("{}", **ptr); } ```
- f124e41ae62ae548e045dadb26b6ad172bf8020b - C++ API - MSVC 2019 (16.11.17) is probably applicable to Clang and GCC as well --- I'm encountering a rare issue where a completely valid buffer gets...
Unable to compile .fbs files from CMake when using FlatBuffers via vcpkg, as necessary convenience functions are in [BuildFlatBuffers.cmake](https://github.com/google/flatbuffers/blob/master/CMake/BuildFlatBuffers.cmake), which isn't included to the port distribution. See [related issue](https://github.com/microsoft/vcpkg/issues/24484) for...