Skip to content
Compare
Choose a tag to compare
@pyrco pyrco released this 25 Jun 08:45
7f6a584

Version 4.0 is a complete rewrite of how structures are handled as Python classes and instances. Structures and structure members are now proper Python class(instances) and can be used for e.g. typing purposes.

There is a good chance that your code that depends on dissect.csturct needs at least some slight modifications to work with version 4.0. You can look at the other dissect projects to get a feel on what these changes may be; look for the commits titled: "Compatibility with cstruct v4".

What's Changed

  • Rewrite type system and compiler (v4) by @Schamper in #35
  • Fix expression parser on empty expressions by @Schamper in #90
  • Fix enum membership checks by @Schamper in #91
  • Use align instead of align in StructureMetaType.init by @Miauwkeru in #92
  • fix offsets in generate fields by @Miauwkeru in #93
  • Update descriptions and examples by @Miauwkeru in #94
  • Bump the version of virtualenv in tox.ini to pull in the correct version of pip by @pyrco in #95
  • Add hash function to make StructureMetaType classes hashable by @Miauwkeru in #97

Full Changelog: 3.14...4.0