2 ms·
Congratulations on releasing it! How would one encode something like the Java class file, which has "pascal strings," tagged structs, and repetition? e.g. http
by mdaniel 4y ago
Congratulations on releasing it!
How would one encode something like the Java class file, which has "pascal strings," tagged structs, and repetition? e.g. https://github.com/kaitai-io/kaitai_struct_formats/blob/c61bec5f60f04059636c3b5c8777a3995b5bb103/executable/java_class.ksy#L23-L26 https://github.com/kaitai-io/kaitai_struct_formats/blob/c61b...
And, my other favorite thing to pick on: file formats with offset references
- flxbe 4y agoThanks! For reading an arbitrarily sized sequence, you could use the "decode_all" function (Sorry, this one is not documented yet). Besides that, the library only supports parsing data with a statically known layout. If your data contains any self-describing sections, you would have to parse in multiple steps. Not including these features natively was a deliberate decision, as my personal preference in those cases is to write the outer glue code myself.