[C#] Fix truncated ArraySegment<byte> if elementSize != 1 (#6462)

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

* Fix

* Regenerated test code
This commit is contained in:
Björn Harrtell
2021-02-23 09:34:20 -08:00
committed by GitHub
parent ffc2ef77ca
commit cbbbaa61b3
7 changed files with 24 additions and 19 deletions
@@ -277,6 +277,9 @@ namespace FlatBuffers.Test
{
Assert.IsTrue(monster.GetTestarrayofboolsBytes().HasValue);
}
Assert.AreEqual(monster.VectorOfDoublesLength * 8, monster.GetVectorOfDoublesBytes().Value.Count);
#endif
}