Closed xianglin1998 closed 1 year ago
I tried to use Flatcc to build vectors that store fixed length arrays, but after the serialized data was deserialized by Python, I printed these fixed length arrays, them all with 0.
test.fbs: struct Key6Bytes { bytes: [uint8:6]; } table KeysArray{ keys: [Key6Bytes]; }
struct Key6Bytes { bytes: [uint8:6]; } table KeysArray{ keys: [Key6Bytes]; }
I did not find a similar usage in the documentation and example.
@mikkelfj Can you test the above usage? thankyou.
Resolved, requires the use of: xxxx_push_create(B, bytes)
xxxx_push_create(B, bytes)
I tried to use Flatcc to build vectors that store fixed length arrays, but after the serialized data was deserialized by Python, I printed these fixed length arrays, them all with 0.
test.fbs:
struct Key6Bytes { bytes: [uint8:6]; } table KeysArray{ keys: [Key6Bytes]; }
I did not find a similar usage in the documentation and example.
@mikkelfj Can you test the above usage? thankyou.