You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the flatc --annotate option on a FlatBuffer schema and binary that contain a struct that is used for multiple fields, those fields will be annotated with the struct name and not the field name. This makes it difficult to understand which field the data is for.
Looking at the annotated vtable suggests that the first six fields are for pains, and the last six fields are for basic. However, this is not obvious in the annotated table.
Instead, I would have expected it to be annotated like so:
When using the flatc
--annotate
option on a FlatBuffer schema and binary that contain a struct that is used for multiple fields, those fields will be annotated with the struct name and not the field name. This makes it difficult to understand which field the data is for.For example, say I have the following struct:
And usage like so:
It will be annotated like so:
Looking at the annotated vtable suggests that the first six fields are for
pains
, and the last six fields are forbasic
. However, this is not obvious in the annotated table.Instead, I would have expected it to be annotated like so:
You can find the FlatBuffer schema and binary I am using here.
The text was updated successfully, but these errors were encountered: