pycstruct icon indicating copy to clipboard operation
pycstruct copied to clipboard

A python library for reading and writing binary data similar to what is done in C language structs

Results 7 pycstruct issues
Sort by recently updated
recently updated
newest added

05 00 00 00 31 32 34 35 36 how to deal that? get string: 12456>?

Just FYI, a similar library: https://github.com/andreax79/python-cstruct/

Since StructDef.add can accept instances of other subclasses of _BaseDef for the datatype, this type hint doesn't cover all possible cases, which annoys my IDE and type checker.

I can see that I can get get_field_type of a specific field, however is there a method available to list the available fields? Im trying to create a dynamic documentation...

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...

When i saw your library, i was searching something to define cstrucs as descriptive way. With the last python typing annotation there is probably way to provide something like that:...

Sorry to spam, but this makes me think a lot :-) I have some proposal with the way encoding is handled with the C syntax. ``` struct person { char...