flatbuffers/tests
Colin 4174c10e7a
[rust] Genericize flexbuffer reader (#6450)
* feature/rust-tokio-bytes added feature name for tokio-bytes

* Added flexbuffer implementation, TODO: typecast to avoid recurse

* Converted codebase to utilize FlexBuffer implementation, need to resolve deserialization issues

* Added todo for lifetime issue, may use &'de [u8] for deserializer instead of current method

* Added proper &[u8] implementation

* Removed unused struct

* Added experimental fix to get_slice

* Added experimental fix to get_slice

* Avoided lifetime issues via ref structs, need to check if this hurts peformance

* Updated deserializer implementation to allow for borrowed data from Reader struct

* Fixed bug with str

* Removed unnecessary generic parameter

* Added unsafe to avoid lifetime complaints, current tests pass, need to review alternatives to unsafe

* Opinionated: Removed bytes crate as this implementation could be done in a separate crate

* Cleaned up flatbuffer

* Fixed sample / example

* Resolved PR feedback, need to resolve issues with tests

* Cleaned up FlexBuffer trait to be an auto impl

* Removed TODO

* Reverted Deserializer to only support &'de [u8]

* Cleaned up / renamed function for clarification

* Renamed FlexBuffer -> InternalBuffer for clarification on it's purpose

* Fixed issue with key bytes

* resolved issues with broken tests, confirming this is a breaking change

* Removed FIXME that's solved by splitting String and Key variants

* Implemented associated types approach

* Fixed backward slice logic

* Fixed MapReader compile error

* Added from_buffer for deserialization, removed  function since it's only needed for deserialization

* Removed dead code

* Cleaned up buffer, removed AsRef in favor of Deref

* Renamed Buffer::as_str -> Buffer::buffer_str

* Minor cleanup

* Updated documentation, need to fix tests

* Removed unnecessary &

* Removed unused lifetime

* removed unnecessary as_ref

* Minor optimization wrap-up

* resolved issue with Clone

* Added test to verify no deep-copy

* Added  for optimization

* Updated to use empty fn instead of default

* Updated comments / test name - plus the 0.3.0 version bump

* comment
2021-02-16 08:04:48 -05:00
..
FlatBuffers.Benchmarks Remove byte* property in ByteBufferAllocator (#5191) 2019-02-21 23:36:55 +01:00
FlatBuffers.Benchmarks.swift Updates license date to 2021 (#6378) 2021-01-02 11:46:46 +03:00
FlatBuffers.GRPC.Swift Upgrade swift grpc to alpha 24 (#6439) 2021-02-04 02:01:18 +03:00
FlatBuffers.Test [Rust] Ensure unions are referenced with the correct path (#6422) 2021-01-25 09:33:47 -08:00
FlatBuffers.Test.Swift [Swift] Renaming protocols (#6469) 2021-02-16 14:55:47 +03:00
MyGame Better python generated code naming (#6336) 2021-01-28 12:35:37 -08:00
cpp17 [C++, JSON] Fix nullptr access when reading a key with a default value. (#6375) 2021-01-07 11:24:59 -08:00
docker [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
evolution_test Add Array initialization from struct constructor (#5865) (#6147) 2020-10-12 12:24:18 -07:00
fuzzer [fuzzer] Limit parser_fuzzer execution time (#6431) 2021-01-30 21:43:31 +07:00
include_test Rust: remove inner attributes (#6410) 2021-01-26 11:09:29 -05:00
namespace_test Implement Rust object API defaults (#6444) 2021-02-07 16:51:33 -05:00
optional_scalars Generate nullable properties in C# object-based API for optional scalars. (without -gen-mutable) (#6273) 2020-12-10 16:50:30 -08:00
prototest (Optionally) add an additional suffix namespace to generated fbs files. (#5698) 2020-01-06 10:00:59 -08:00
rust_usage_test [rust] Genericize flexbuffer reader (#6450) 2021-02-16 08:04:48 -05:00
ts [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
union_vector [C++] Switch `flatc` to `--cpp-std c++11` C++ code generator (#6306) 2020-12-07 11:19:36 -08:00
BUILD.bazel [CMake] Renames BUILD files (#6457) 2021-02-11 10:16:57 -08:00
DartTest.sh Fix up scripts, fix generated enum value for strong mode, regenerate files (#6389) 2021-01-07 14:51:52 -08:00
GoTest.sh [go] tests/GoTest.sh: Fix flags.Parse location to work on new go SDKs. (#6388) 2021-01-07 11:54:00 -08:00
JavaScriptFlexBuffersTest.js [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
JavaScriptTest.js [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
JavaScriptUnionVectorTest.js [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
JavaTest.bat Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
JavaTest.java [Java] Implement optional scalars (#6212) 2020-10-26 17:46:50 -07:00
JavaTest.sh [Java] Implement optional scalars (#6212) 2020-10-26 17:46:50 -07:00
KotlinTest.kt Kotlin test optional enum (#6201) 2020-10-22 13:36:02 -07:00
KotlinTest.sh [Kotlin] Fix Access to union of vector element (#5994) 2020-06-22 17:08:35 -07:00
LuaTest.bat Lua (5.3) Language addition (#4804) 2018-07-05 15:55:57 -07:00
LuaTest.sh Fix for Boolean types (#5379) (#5466) 2019-08-01 10:28:54 -07:00
PythonTest.sh Better python generated code naming (#6336) 2021-01-28 12:35:37 -08:00
RustTest.bat Rust Flexbuffers (#5669) 2020-05-07 14:11:26 -07:00
RustTest.sh Rust: remove inner attributes (#6410) 2021-01-26 11:09:29 -05:00
TestAll.sh [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
TypeScriptTest.bat [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
TypeScriptTest.sh [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
arrays_test.bfbs Optional-ness in reflection (#6097) 2020-09-11 14:20:32 -07:00
arrays_test.fbs Fix incorrect padding in arrays of structs (Issue #5484) (#5491) 2019-08-23 10:46:47 -07:00
arrays_test.golden Fix incorrect padding in arrays of structs (Issue #5484) (#5491) 2019-08-23 10:46:47 -07:00
arrays_test.schema.json JSON schema - tailing double quotes for maximum (#6452) 2021-02-10 11:45:34 -08:00
arrays_test_generated.h [C++] Switch `flatc` to `--cpp-std c++11` C++ code generator (#6306) 2020-12-07 11:19:36 -08:00
generate_code.bat [Rust] Ensure unions are referenced with the correct path (#6422) 2021-01-25 09:33:47 -08:00
generate_code.sh Default strings and vectors: Parser + Rust support (#6421) 2021-02-12 09:41:10 -05:00
go_test.go [go] tests/GoTest.sh: Fix flags.Parse location to work on new go SDKs. (#6388) 2021-01-07 11:54:00 -08:00
gold_flexbuffer_example.bin Rust Flexbuffers (#5669) 2020-05-07 14:11:26 -07:00
javatest.bin Fixed warnings generated by recent JSON sorting feature. 2019-10-17 15:16:40 -07:00
lobstertest.lobster Kotlin test optional enum (#6201) 2020-10-22 13:36:02 -07:00
luatest.lua Lua cleanup (#5624) 2019-11-14 15:46:46 -08:00
monster_extra.fbs [Dart] Fix deprecated field support, inf/nan (#5724) 2020-01-23 14:53:58 -08:00
monster_extra_generated.h [C++] Switch `flatc` to `--cpp-std c++11` C++ code generator (#6306) 2020-12-07 11:19:36 -08:00
monster_extra_my_game_generated.dart [Dart] Fix deprecated field support, inf/nan (#5724) 2020-01-23 14:53:58 -08:00
monster_test.bfbs Unset FieldDef.optional if its key (#6402) 2021-01-12 14:06:43 -05:00
monster_test.fbs Unset FieldDef.optional if its key (#6402) 2021-01-12 14:06:43 -05:00
monster_test.grpc.fb.cc Fix Java generator bug that ignores bidi streaming attribute (#5063) 2018-11-29 10:33:17 -08:00
monster_test.grpc.fb.h Fix Java generator bug that ignores bidi streaming attribute (#5063) 2018-11-29 10:33:17 -08:00
monster_test.schema.json JSON schema - tailing double quotes for maximum (#6452) 2021-02-10 11:45:34 -08:00
monster_test_bfbs_generated.h Unset FieldDef.optional if its key (#6402) 2021-01-12 14:06:43 -05:00
monster_test_generated.h [C++, JSON] Fix nullptr access when reading a key with a default value. (#6375) 2021-01-07 11:24:59 -08:00
monster_test_generated.js [C++, JSON] Fix nullptr access when reading a key with a default value. (#6375) 2021-01-07 11:24:59 -08:00
monster_test_generated.lobster [C++, JSON] Fix nullptr access when reading a key with a default value. (#6375) 2021-01-07 11:24:59 -08:00
monster_test_generated.rs Default strings and vectors: Parser + Rust support (#6421) 2021-02-12 09:41:10 -05:00
monster_test_generated.ts [C++, JSON] Fix nullptr access when reading a key with a default value. (#6375) 2021-01-07 11:24:59 -08:00
monster_test_my_game.example2_generated.dart CI check generate code (#4998) 2018-10-22 15:41:12 -07:00
monster_test_my_game.example_generated.dart Fix up scripts, fix generated enum value for strong mode, regenerate files (#6389) 2021-01-07 14:51:52 -08:00
monster_test_my_game_generated.dart Added missing Dart codegen files. 2018-09-21 09:42:43 -07:00
monsterdata_extra.json Extend the test of MonsterExtra (#5428) 2019-07-08 11:22:56 -07:00
monsterdata_go_wire.mon.sp [go] tests/GoTest.sh: Fix flags.Parse location to work on new go SDKs. (#6388) 2021-01-07 11:54:00 -08:00
monsterdata_python_wire.mon Python: Added support for file_identifiers (#5123) 2019-07-26 11:06:25 -07:00
monsterdata_test.golden Support nested_flatbuffer attribute when parsing bfbs schema (#5448) 2019-07-26 09:13:11 -07:00
monsterdata_test.json [C++, JSON] Fix nullptr access when reading a key with a default value. (#6375) 2021-01-07 11:24:59 -08:00
monsterdata_test.mon [C++, JSON] Fix nullptr access when reading a key with a default value. (#6375) 2021-01-07 11:24:59 -08:00
more_defaults.fbs Default strings and vectors: Parser + Rust support (#6421) 2021-02-12 09:41:10 -05:00
more_defaults_generated.rs Default strings and vectors: Parser + Rust support (#6421) 2021-02-12 09:41:10 -05:00
native_type_test.fbs [C++] remove static_cast expression (#5440) 2019-08-01 14:31:48 -07:00
native_type_test_generated.h [C++] Switch `flatc` to `--cpp-std c++11` C++ code generator (#6306) 2020-12-07 11:19:36 -08:00
native_type_test_impl.cpp [C++] Refactor to conform to Google C++ style guide (#5608) 2019-11-07 12:22:54 -08:00
native_type_test_impl.h [C++] Refactor to conform to Google C++ style guide (#5608) 2019-11-07 12:22:54 -08:00
optional_scalars.fbs Kotlin test optional enum (#6201) 2020-10-22 13:36:02 -07:00
optional_scalars_generated.h [C++] Switch `flatc` to `--cpp-std c++11` C++ code generator (#6306) 2020-12-07 11:19:36 -08:00
optional_scalars_generated.lobster Kotlin test optional enum (#6201) 2020-10-22 13:36:02 -07:00
optional_scalars_generated.rs Implement Rust object API defaults (#6444) 2021-02-07 16:51:33 -05:00
package.json [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
phpTest.php Go - Use Go bool type for bool fields (#4962) 2018-10-15 16:55:59 -07:00
phpUnionVectorTest.php Vector of unions for TS/JS and PHP (#4404) 2017-08-11 09:24:36 -07:00
phpUnionVectorTest.sh Vector of unions for TS/JS and PHP (#4404) 2017-08-11 09:24:36 -07:00
py_flexbuffers_test.py Implement flexbuffers in python (#5880) 2020-05-07 14:26:33 -07:00
py_test.py Better python generated code naming (#6336) 2021-01-28 12:35:37 -08:00
test.cpp Default strings and vectors: Parser + Rust support (#6421) 2021-02-12 09:41:10 -05:00
test_assert.cpp Added --filename-suffix and --filename-ext to flatc (#5778) 2020-03-02 10:15:23 -08:00
test_assert.h wrap multiple statements in do {} while(!IsConstTrue(true)) (#5655) 2019-12-13 10:14:14 -08:00
test_builder.cpp Added --filename-suffix and --filename-ext to flatc (#5778) 2020-03-02 10:15:23 -08:00
test_builder.h Add flatc '--cpp_std' switch (#5656) 2019-12-23 12:13:48 -08:00
tsconfig.json [TS/JS] New gen TS code gen (#6302) 2021-01-19 12:51:13 -08:00
unicode_test.json Fixed JSON parser not sorting vectors of tables/structs with key. 2019-10-10 15:25:39 -07:00