matteomattei / PySquashfsImage

Python library to read Squashfs image files.
GNU General Public License v3.0
50 stars 20 forks source link

Start using struct #21

Closed AT0myks closed 1 year ago

AT0myks commented 1 year ago

Instead of relying on read{Short,Int,Long} and autoMakeBufInteger, use struct to unpack data. read and fill are moved to _Squashfs_commons and each subclass defines its own format and fields. Remove a lot of redundant code from _Inode_header, and fix ldev_header that didn't have the correct format.

matteomattei commented 1 year ago

Thank you!