Skip to content

build and read arrays in struct #230

Answered by mikkelfj
michbens asked this question in Q&A
Discussion options

You must be logged in to vote

It is also possible your first example might work if you replace the vector reference with a native C array of the correct type, and leave the creation of the vector.

In the documentation, you will see an assign call that takes an array and string as arguments. It should work the same with create calls.
https://github.com/dvidelabs/flatcc/blob/master/doc/builder.md#fixed-length-arrays-in-structs

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@michbens
Comment options

@mikkelfj
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mikkelfj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants