butte-rs/butte

Fixed-size arrays

Opened this issue ยท 0 comments

reyk commented

flatc supports fixed-sized arrays of structs. But only for C++ output, not for Rust output ๐Ÿ‘Ž

This enhancement is a nice-to-have. But the nice thing about this is that it allows to enforce the size in the schema and not just in the code.

key: [ubyte:32];

or

key: [ubyte] (size: 32);