flatbuffers/tests
Eric Erhardt 0cdacdfb35 Remove byte* property in ByteBufferAllocator (#5191)
* Remove byte* property in ByteBufferAllocator.

This allows consumers to read/write into native memory, but without
having to always pin the managed `byte[]` when working with managed
memory. This allows for users to not need to Dispose() ByteBuffers
when they are using the default ByteArrayAllocator class.

Instead, we use `Span<byte> GetSpan()` methods to get access to the
underlying memory buffer.

Fix #5181

* Add a set of benchmark tests.

* Add ReadOnly spans.

This allows consumers to use ReadOnlyMemory<byte> as the backing storage
for ByteBuffers, which is useful in read-only scenarios.

* Run tests using ENABLE_SPAN_T in appveyor.

* Fix FlatBuffers.Test.csproj to work on older MSBuild versions.

* Change the test script to test UNSAFE_BYTEBUFFER

* Address PR feedback.

Remove IDisposable from ByteBuffer.

* Respond to PR feedback.
2019-02-21 23:36:55 +01:00
..
docker Docker tests for Zend PHP and Mono C#; Python coverage; TODO for HHVM PHP (#5125) 2019-01-16 16:41:02 -08:00
FlatBuffers.Benchmarks Remove byte* property in ByteBufferAllocator (#5191) 2019-02-21 23:36:55 +01:00
FlatBuffers.Test Remove byte* property in ByteBufferAllocator (#5191) 2019-02-21 23:36:55 +01:00
fuzzer Make the Parser independent from the global C-locale (#5028) 2018-11-16 09:24:06 -08:00
include_test Disallowed 0 byte structs. 2018-10-29 17:40:19 -07:00
MyGame Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
namespace_test Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
prototest
rust_usage_test Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
union_vector Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
DartTest.sh
generate_code.bat Add default NaN/Inf to C#, Java, Python (#5107) 2019-01-14 09:23:42 -08:00
generate_code.sh Add default NaN/Inf to C#, Java, Python (#5107) 2019-01-14 09:23:42 -08:00
go_test.go [Go] Namespaced imports fix (#5097) 2018-12-27 20:57:19 -05:00
GoTest.sh [Go] Namespaced imports fix (#5097) 2018-12-27 20:57:19 -05:00
JavaScriptTest.js JS- support clear() method on builder (#5109) 2019-01-14 09:21:42 -08:00
JavaScriptTest.sh
JavaScriptUnionVectorTest.js
JavaTest.bat Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
javatest.bin Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
JavaTest.java Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
JavaTest.sh Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
lobstertest.lobster
LuaTest.bat
luatest.lua
monster_extra.fbs Add default NaN/Inf to C#, Java, Python (#5107) 2019-01-14 09:23:42 -08:00
monster_extra_generated.h Add default NaN/Inf to C#, Java, Python (#5107) 2019-01-14 09:23:42 -08:00
monster_test.bfbs Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monster_test.fbs Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08: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 Fixed vectors of enums in object API serialized incorrectly. 2018-11-05 14:33:36 -08:00
monster_test_generated.h Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monster_test_generated.js Changed the JavaScript generation to emit createX helper functions just like the TypeScript code generation. I also added code so that the create methods have documentation in both JavaScript and TypeScript. (#5168) 2019-02-15 01:00:33 +01:00
monster_test_generated.lobster Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monster_test_generated.rs Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monster_test_generated.ts Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monster_test_my_game.example2_generated.dart
monster_test_my_game.example_generated.dart Fixed vectors of enums in object API serialized incorrectly. 2018-11-05 14:33:36 -08:00
monster_test_my_game_generated.dart
monsterdata_python_wire.mon Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monsterdata_test.golden
monsterdata_test.json
monsterdata_test.mon Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
phpTest.php
phpUnionVectorTest.php
phpUnionVectorTest.sh
py_test.py Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
PythonTest.sh
RustTest.bat Rust: test that no heap allocs happen on hot paths (#5022) 2018-10-31 18:08:14 -07:00
RustTest.sh Rust: test that no heap allocs happen on hot paths (#5022) 2018-10-31 18:08:14 -07:00
test.cpp Utility for checking the encoding and line ending of source files (#5188) 2019-02-19 20:22:25 +01:00
test_assert.cpp Repair MSVC-CRT leakage detector and enable this detection with Appveyor-CI (#5105) 2019-01-24 13:30:11 -08:00
test_assert.h Fixed use of WIN32 needs to be _WIN32. 2019-02-19 10:49:55 -08:00
test_builder.cpp
test_builder.h Removing 'using namespace' usage in test_builder (#5154) 2019-02-05 02:07:05 +01:00
TestAll.sh
TypeScriptTest.sh
unicode_test.json