[C#] Fix truncated ArraySegment<byte> if elementSize != 1 (#6462)
authorBjörn Harrtell <bjornharrtell@users.noreply.github.com>
Tue, 23 Feb 2021 17:34:20 +0000 (18:34 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Feb 2021 17:34:20 +0000 (09:34 -0800)
commitcbbbaa61b34c31f17773c2fef354c31664e9562e
treefcd7e13a98f401046c37835a3c0bf0cf1a4f6f65
parentffc2ef77caeb6b04e89db952c65216982db44698
[C#] Fix truncated ArraySegment<byte> if elementSize != 1 (#6462)

* WIP: Fix returned truncated ArraySegment<byte> if elementSize is not byte

* Fix

* Regenerated test code
net/FlatBuffers/Table.cs
src/idl_gen_csharp.cpp
tests/FlatBuffers.Test/FlatBuffersExampleTests.cs
tests/MyGame/Example/Monster.cs
tests/MyGame/Example/Stat.cs
tests/MyGame/Example/TypeAliases.cs
tests/MyGame/MonsterExtra.cs