mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
* [C#] Add GetBytes methods for fixed arrays I wanted to direct access to fixed array bytes. I made some changes to the idl generator to create GetBytes functions following the same naming conventions used for vectors of scalar types. There was not a 'Length' field present to bound the existing index accessor so I added that too. + Add generic GetBytes for fixed length arrays of scalar types + Implement conditional compilation for ENABLE_SPAN_T: - ENABLE_SPAN_T: Returns `Span<T>` using `MemoryMarshal.Cast<byte, T>()` as needed. - Else: Returns `ArraySegment<byte>?` for raw byte access + Added tests reusing arrays_test.fbs definitions + Added const int Length field to support existing index based accessors * [C#] Sync generated code for after adding GetBytes methods for fixed arrays --------- Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| Example | ||
| Example2 | ||
| OtherNameSpace | ||
| __init__.py | ||
| InParentNamespace.cs | ||
| InParentNamespace.go | ||
| InParentNamespace.java | ||
| InParentNamespace.kt | ||
| InParentNamespace.lua | ||
| InParentNamespace.nim | ||
| InParentNamespace.php | ||
| InParentNamespace.py | ||
| InParentNamespaceT.java | ||
| MonsterExtra.cs | ||
| MonsterExtra.java | ||
| MonsterExtra.kt | ||
| MonsterExtra.py | ||
| MonsterExtra.pyi | ||
| MonsterExtraT.java | ||