summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-06-18Rust Flexbuffers Documentation update (#5979)Casper4-4/+37
* Update samples and docs * Fixed a line of documentation Co-authored-by: Casper Neo <cneo@google.com>
2020-06-17[docs] typo: updates monsterdata.json to be valid json (#5978)Dimitri Mitropoulos2-30/+30
* updates monsterdata.json to be valid json the same monster.json file was not valid json * updates reference to monsterdata.json in docs to also be valid json
2020-06-15[idl_parser] Mark typefield as deprecated (#5958)Liu Liu8-46/+157
* Mark typefield as deprecated * Add UnionDeprecation Test. * Update to use evolution schema instead. * Use --scoped-enums to compile.
2020-06-15Deleted old stale botDerek Bailey1-18/+0
The new stale action replaces the function of this bot, so removing the old one. It also prevents the two bots from battling each other :)
2020-06-15Increased Operations per run in stale.ymlDerek Bailey1-0/+1
The default operations per run is 30 which would be consumed on the reprocessing already-marked issues. Greatly increased the operations per run to process all issues and pull request (~200 + 83 * 5).
2020-06-12Adding Stale Action to clean up PR and IssuesDerek Bailey1-0/+19
Uses the Stale action (https://github.com/actions/stale) to help clean up older Issues and PR. Set to 6 months to mark as stale, and 14 days to close stale.
2020-06-11[C++] Fixed/Enabled --cpp-ptr-type std::shared_ptr [#5813] (#5959)volkan-ozdemir2-15/+19
2020-06-11Propagate boolean default values from proto to fbs (#5964)Mika Raento1-2/+5
2020-06-11[Swift] Improving reallocation time by using memcpy and moving reallocation ↵mustiikhalil3-25/+27
code to storage (#5960) Removes stride Use capacity - current size to initialize Fixes memory leak Updated test code for linux
2020-06-09Fix error in SimpleQSort (#5955)Vladimir Glavnyy1-1/+1
2020-06-08fix error on GRPC Python - ignore namespace tree if not specified (#5862) ↵Malar Kannan1-2/+4
(#5922)
2020-06-08Required is now implemented in swift (#5952)mustiikhalil4-44/+103
2020-06-08Fixed: Access violation and ASAN/UNSAN failures with sorted tablesWouter van Oortmerssen1-4/+4
https://github.com/google/flatbuffers/issues/5945
2020-06-08[rust] Add FlatBufferBuilder::force_defaults API (#5946)Matt Brubeck2-3/+35
* [rust] Add force_defaults method FlatBufferBuilder This works just like the same method already available in other languages. * Add binary format test for force_defaults
2020-06-08[FlexBuffer][Java] ReadWriteBuf and ReadBuf interface public (#5948)Paulo Pinheiro2-2/+2
Those interfaces need to be public for use cases where the user pass a buffer to FlexBuffers class that is not a ByteBuffer. This will fix #5944
2020-06-04[Java] Grow ArrayReadWriteBuf enough to match requested capacity. (#5921)greenrobot Team2-4/+12
* [Java] Grow ArrayReadWriteBuf enough to match requested capacity. Also handle requested capacity overflowing. * [Java] Improve readability of ArrayReadWriteBuf.requestCapacity() * [Java] prepare testBuilderGrowth() to fail again once FlexBuffersBuilder uses ByteBufferReadWriteBuf internally, add TestFail() as a better alternative to a plain "assert false" * [Java] Revert some test changes and extract a small string that was used more than once; one could say three times, however, it might be worthy of a discussion if the third occasion also falls into this category, as it is an independent use case and thus would work in the same way even if the value changed. Co-authored-by: Markus <markus@greenrobot>
2020-06-04Adds bool support in structs + updates grpc support + CI upgrades (#5943)mustiikhalil16-259/+342
2020-06-04fixed mutating inline values (#5942)Kamil Rojewski8-195/+46
Co-authored-by: Kamil Rojewski <kamil.rojewski@gmail.com>
2020-06-02Add static asserts to ensure that reflection API arrays are kept in sync (#5934)Laurentiu Cristofor3-8/+37
* Add static asserts to ensure that reflection API arrays are kept in sync * Move changes from generated file into source fbs file * Rename enum value and regenerate reflection_generated.h * Add comments to each entries of type sizes array
2020-06-01[C++] Got rid of memset's in constructors (#5938)bakinovsky-m10-85/+188
* [C++] removed array's memsets from struct parametrized constructor now POD-typed arrays are zero-initialized and class-typed arrays are default-initialized * [C++] memset -> zero/default initialization in default constructor * [C++] Struct-type and array default initialization * [C++] Newly generated tests * [C++] forgotten test * [C++] curly brace by code style * [C++] test if memory is 0's after placement new * [C++] memory leak fix * [C++] simplifying and non-dynamic memory in test * [C++] code cleanup * [C++] disable old-compiler warning * [C++] windows build fix (try) * [C++] debug-new win build fix
2020-06-01General Codebase clean up (#5939)Derek Bailey8-42/+34
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. * Ensuring test/generate_code.sh was ran * Fixed Dart Tests by removing code-gen for included files. * General cleanup of codebase.
2020-05-29Add GetStringView like GetString, GetCstring (#5937)stefan3011-0/+8
* Added missing EndTable() call to VerifyObject() VerifyObject called VerifyTableStart() but not EndTable(). This made Verifier::VerifyComplexity() increase depth_ with each table, not with the depth of tables. https://groups.google.com/forum/#!topic/flatbuffers/OpxtW5UFAdg * Added Check to VerifyAlignment https://stackoverflow.com/questions/59376308/flatbuffers-verifier-returns-false-without-any-assertion-flatbuffers-debug-veri * Add GetStringView (Convenience function to get string_view from a String returning an empty string_view on null pointer) like GetString, GetCstring Co-authored-by: stefan301 <Stefan.Felkel@de.Zuken.com>
2020-05-21[C#] Add file identifier to ObjectAPI Serialization Utility. (#5920)mugisoba6-7/+12
* use Finish***Buffer instead. * add file_identifier test.
2020-05-18not creating creation methods when using structs (#5919)Kamil Rojewski5-246/+62
* not creating creation methods when using structs * vs2015 build fix Co-authored-by: Kamil Rojewski <kamil.rojewski@gmail.com>
2020-05-18[Dart] Adding FlexBuffers support (#5853)Maxim Zaks7-0/+2020
* Adding FlexBuffers support for Dart language
2020-05-15[Dart] Getting tests/DartTest.sh to work on master. (#5915)Derek Bailey4-9/+4
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. * Fixed Dart Tests by removing code-gen for included files.
2020-05-14Schema parser: prohibit declaration of an array of pointers inside structs ↵Vladimir Glavnyy3-63/+83
(#5907) * Fix issue #5906, Prohibit declaration of an array of pointers inside structs - idl_parser.cpp: Prohibit declaration of an array of pointers inside structs - idl_gen_cpp.cpp: Extract GenStructConstructor() method from GenStruct() to simplify future modification - idl_gen_cpp.cpp: Add assert for checking of Array fields in structs on code-generation stage * Fix the error 'unused local variable' in release build * Fix: format the PR code according to coding rules * Add test-case and fix review notes
2020-05-13Fix Cargo.toml dependencies (#5911)Casper1-7/+2
* Fix Cargo.toml dependencies * less specific serde dependency Co-authored-by: Casper Neo <cneo@google.com>
2020-05-13fix union type names (#5902)Dan Field7-45/+103
* fix union type names * fix up generation and test * format * update codegen
2020-05-11Update Rust Flexbuffers metadata before publishing (#5905)Casper1-1/+6
Co-authored-by: Casper Neo <cneo@google.com>
2020-05-11[TS] Make Obj-API work with --short-names (#5898)Khoi Dinh Trinh4-50/+60
* changed function used for getting struct name * re-generated code
2020-05-07fixed invalid imports with --gen-all (#5895)Kamil Rojewski1-6/+9
* fixed invalid imports with --gen-all * only excluding crate imports Co-authored-by: Kamil Rojewski <kamil.rojewski@gmail.com>
2020-05-07[C#] Thread safe reads of Double and Float values from a ByteBuffer (#5900)Derek Bailey5-23/+104
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. * Thread safe reads of Double and Floats from ByteBuffer
2020-05-07Implement flexbuffers in python (#5880)Dmitriy Kovalev3-0/+3055
2020-05-07Rust Flexbuffers (#5669)Casper38-55/+5516
* Cargo clippy lints * more lints * more lints * Restored a doc comment * Comment on float eps-eq and adjusted casting * Rust Flexbuffers * more serde tests, removed some unsafe * Redid serde to be map-like and Reader is Display * Moved iter from Reader to VectorReader * Serious quickcheck + bugs * wvo api * Made types smaller for a reasonable speedup * redid reading in a way that's a bit faster. Profiling shows the rust slowdown as building +10%, reading +20% * src/bin are developer binaries in rust * Root and Map width are not packed * key null check is debug only + doc changes * BuilderOptions * Documentation * Documentation * Moved tests to rust_usage_test * Moved rust flexbuffers samples to Flatbuffers/samples * Fixed RustTest * Fixed for Rust 1.37.0 * Upgraded to rust 1_40_0 * fixed a little-endian-only feature in a test * 1.40.0 * fixed some benchmarks for bigendian * Updated .bat file * misspelling * Gold Flexbuffer test. * Serialize,Deserialize, std::error::Error for Errors. * Undo rustfmt in integration_test.rs * from_slice instead of from_vec * Added comments to unsafe blocks * expanded on comment * bump Co-authored-by: CasperN <cneo@google.com>
2020-05-07[swift] Moves code to use VTablesStorage (#5888)mustiikhalil15-360/+584
* Moves the code to use _vtablestorage Rebuilt the test to confirm to the new API Adds documentation + generates code for grpc Reverts indentation v0.4.0 Updated swift/readme.md Updates VtableStorage to ensure space instead of reallocating each time Fixes str count not being correct * Fixes issue with boolean constant not being set + removes unused function
2020-05-07[Java][FlexBuffers] Make FlexBuffersBuilder reusable by adding clear() ↵Markus Junginger5-0/+38
(#5889) (#5890)
2020-05-07Align package name to FindFlatBuffers.cmake (#5899)Adam Oleksy1-2/+2
This change is for fix warning: ``` CMake Warning (dev) at /home/aoleksy/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message): The package name passed to `find_package_handle_standard_args` (flatbuffers) does not match the name of the calling package (FlatBuffers). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): FindFlatBuffers.cmake:33 (find_package_handle_standard_args) CMakeLists.txt:6 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. ```
2020-05-07Small tutorial improvements - documentation only (#5894)Carol (Nichols || Goulding)1-18/+20
* Use code formatting for a code snippet * Minor grammar, spelling, and Markdown fixes
2020-05-05Attempt at adding Github Actions CIWouter van Oortmerssen1-0/+88
2020-05-04Handle git program or .git folder absence (#5878)Dmitry Volosnykh1-10/+27
Assume version is 0.0.0.0 in such cases.
2020-05-04only add native_include_files if object based api is enabled (#5886)Thomas1-4/+6
The native include files tag is intended to be used together with the object based api. A client which does not use the object based api should have no need to know about the additional include files needed for the object based api. The generated flatbuffers code without object api enabled should compile without the additional header files.
2020-05-04Respect shared attribute in Parser (#5885)Mika Raento2-5/+10
Respects the 'shared' field attribute when reading data with Parser.
2020-05-04include/flatbuffers: typo fixes in comments (#5884)Even Rouault6-6/+6
2020-05-04Updates swift docs for package management (#5883)mustiikhalil2-2/+6
Small fix for the clear function
2020-05-04[Rust] idl_gen_rust.cpp: (Option/required-aware codegen for unions) (#5850)jrop1-1/+9
* idl_gen_rust.cpp: Fix google/flatbuffers#5849 (Option/required-aware codegen for unions) The generated code was assuming that an Option is always returned by the union-getter method: however, this is only true if the field is not marked as `(required)`. * idl_gen_rust.cpp: flip conditional * idl_gen_rust.cpp: Add comment, as requested in review The code added is not covered by the integration test
2020-04-30Propagate use_string_pooling in CopyTable (#5879)Mika Raento1-4/+6
This allows using CopyTable for deduplicating strings.
2020-04-27Not using reexports with --gen-all (#5873)Kamil Rojewski1-0/+1
Co-authored-by: Kamil Rojewski <kamil.rojewski@gmail.com>
2020-04-23Added INCLUDE_PREFIX option for flatbuffers_generate_headers (#5866)Alex Ames1-15/+20
This option was in an earlier revision of flatbuffers_generate_headers but was lost while refactoring by mistake. We have it as a function argument rather than one of the optional flags so that we can use it to inform the rule where to place the generated headers, so that the file location matches the prefix that will be added to the filenames in the generated files. Also fixed some of the documentation in the file.
2020-04-23Fixed text in internals doc that implied structs can be rootWouter van Oortmerssen1-1/+1