)]}'
{
  "commit": "1a7495a6dd58679fad53a0cb7a083dd7cd38ccc8",
  "tree": "2441e66c18eb025135a1cfb113894c845293d030",
  "parents": [
    "3c1bb67ae10dd1ac46eee6f15d9687f097811a9d"
  ],
  "author": {
    "name": "bigjt",
    "email": "208875523+bigjt-dev@users.noreply.github.com",
    "time": "Wed Feb 04 18:13:32 2026 -0500"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Feb 04 23:13:32 2026 +0000"
  },
  "message": "[C#] Add GetBytes methods for fixed arrays (#8633)\n\n* [C#] Add GetBytes methods for fixed arrays\n\nI 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 \u0027Length\u0027 field present to bound the existing index accessor so I added that too.\n\n+ Add generic GetBytes for fixed length arrays of scalar types\n+ Implement conditional compilation for ENABLE_SPAN_T:\n  - ENABLE_SPAN_T: Returns `Span\u003cT\u003e` using `MemoryMarshal.Cast\u003cbyte, T\u003e()` as needed.\n  - Else: Returns `ArraySegment\u003cbyte\u003e?` for raw byte access\n+ Added tests reusing arrays_test.fbs definitions\n+ Added const int Length field to support existing index based accessors\n\n* [C#] Sync generated code for after adding GetBytes methods for fixed arrays\n\n---------\n\nCo-authored-by: Björn Harrtell \u003cbjornharrtell@users.noreply.github.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7de12ef8fb253060bfb603bc0b55ae0651e5cb30",
      "old_mode": 33188,
      "old_path": "src/idl_gen_csharp.cpp",
      "new_id": "cfa51bc117e0835a135c566373f398c835dcd9db",
      "new_mode": 33188,
      "new_path": "src/idl_gen_csharp.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1c9a8f327d070bc1aed6daff20f67cf52e4621f9",
      "new_mode": 33188,
      "new_path": "tests/FlatBuffers.Test/FlatBuffersFixedLengthArrayTests.cs"
    },
    {
      "type": "modify",
      "old_id": "70a8bddd194e055fa024940d9860cd2152c82351",
      "old_mode": 33188,
      "old_path": "tests/MyGame/Example/ArrayStruct.cs",
      "new_id": "bb601d173b81619dd13959ecc8e6f6eb9c43ccba",
      "new_mode": 33188,
      "new_path": "tests/MyGame/Example/ArrayStruct.cs"
    },
    {
      "type": "modify",
      "old_id": "78173acc6138928b7e9d7e49d63cc31ce246ee4e",
      "old_mode": 33188,
      "old_path": "tests/MyGame/Example/NestedStruct.cs",
      "new_id": "84e70d0b0eb38d0784cef6ffebd95f91e0a88f0d",
      "new_mode": 33188,
      "new_path": "tests/MyGame/Example/NestedStruct.cs"
    }
  ]
}
