Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@stefan301
Copy link
Contributor

@stefan301 stefan301 commented Jan 21, 2026

__vector_as_array calling ByteBuffer.ToArray with the length in bytes by multiplying len with ByteBuffer.Sizeof and FlatBuffersExampleTests extended to call GetVectorOfLongsArray/GetVectorOfDoublesArray which failed without the fix

ref #8759

__vector_as_array<T> calling ByteBuffer.ToArray<T> with the length in bytes by multiplying len with ByteBuffer.Sizeof<T> and FlatBuffersExampleTests extended to call GetVectorOfLongsArray/GetVectorOfDoublesArray which failed without the fix
@bjornharrtell
Copy link
Collaborator

This looks like a solid fix @stefan301 possibly replacing #8760.

@bjornharrtell bjornharrtell changed the title fix for https://github.com/google/flatbuffers/issues/8759 [c#] Fix Table __vector_as_array correct len calc Jan 29, 2026
@bjornharrtell
Copy link
Collaborator

I took the liberty of properly referencing the issue and change the title to what this PR actually does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants