midstar / pycstruct

A python library for reading and writing binary data similar to what is done in C language structs
MIT License
24 stars 4 forks source link

ArrayDef #31

Open vallsv opened 3 years ago

vallsv commented 3 years ago

Hi,

I am working on an ArrayDef in order to have more convenient modelization. Is that something you could be interested in?

Here is my prototype https://github.com/midstar/pycstruct/commit/8123cb74d1017f3ca9bfc74e5421d47727db5f6b, it works, but there is a lot of rework to be done to make it really part of the modelization.

That's something really needed for #21.

With that you also should be able handle stuffs like int foo[2][2].

midstar commented 3 years ago

That would be great. The current array/list implementation that I made is sort of a hack.