flatbuffers/tests/FlatBuffers.Test
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
..
Properties Removed BOM marker from some files. 2016-05-23 12:24:44 -07:00
Resources Go - Use Go bool type for bool fields (#4962) 2018-10-15 16:55:59 -07:00
Assert.cs Removed BOM marker from some files. 2016-05-23 12:24:44 -07:00
ByteBufferTests.cs Mono Fix for Unsafe Mode (#4887) 2018-08-20 16:31:44 -07:00
FlatBufferBuilderTests.cs Mono Fix for Unsafe Mode (#4887) 2018-08-20 16:31:44 -07:00
FlatBuffers.Test.csproj Remove byte* property in ByteBufferAllocator (#5191) 2019-02-21 23:36:55 +01:00
FlatBuffersExampleTests.cs [C#] Fix FlatBuffers.Tests when ENABLE_SPAN_T is defined (#5182) 2019-02-15 00:53:36 +01:00
FlatBuffersFuzzTests.cs Java/C#/Python prefixed size support (#4445) 2018-03-12 11:30:46 -07:00
FlatBuffersTestClassAttribute.cs Removed BOM marker from some files. 2016-05-23 12:24:44 -07:00
FlatBuffersTestMethodAttribute.cs Removed BOM marker from some files. 2016-05-23 12:24:44 -07:00
FuzzTestData.cs Removed BOM marker from some files. 2016-05-23 12:24:44 -07:00
Lcg.cs Added missing licenses to some sh/cs/py files. 2016-05-23 09:51:41 -07:00
NetTest.sh Vector of unions support for java and c# (#4735) 2018-05-14 11:12:24 -07:00
Program.cs Removed BOM marker from some files. 2016-05-23 12:24:44 -07:00
TestTable.cs Switched C# accessors from classes to structs 2016-08-31 17:34:51 -07:00