C# support for directly reading and writting to memory other than byte[]. For exampl...
authorChristopher Cifra <christopher.cifra@live.com>
Thu, 23 Aug 2018 17:05:31 +0000 (12:05 -0500)
committerWouter van Oortmerssen <aardappel@gmail.com>
Thu, 23 Aug 2018 17:05:31 +0000 (10:05 -0700)
commitd0321df8cfa24b86c15fdca029aadc2c232029cc
treec1e0a441c2a7bcfcdd0a64a46f789bd336ed1107
parente1f48ad35ad1bbdbc3ded1ff537e362011a6c876
C# support for directly reading and writting to memory other than byte[].  For example, ByteBuffer can be initialized with a custom allocator which uses shared memory / memory mapped files. (#4886)

Public access to the backing buffer uses Span<T> instead of ArraySegment<T>.

Writing to the buffer now supports Span<T> in addition to T[].

To maintain backwards compatibility ENABLE_SPAN_T must be defined.
net/FlatBuffers/ByteBuffer.cs
net/FlatBuffers/FlatBufferBuilder.cs
net/FlatBuffers/FlatBuffers.csproj
net/FlatBuffers/Table.cs
src/idl_gen_general.cpp
tests/FlatBuffers.Test/FlatBuffersExampleTests.cs
tests/MyGame/Example/Monster.cs
tests/MyGame/Example/Stat.cs
tests/MyGame/Example/TypeAliases.cs
tests/union_vector/Movie.cs