18 Commits
Author SHA1 Message Date
Timofey Solomko 0ff3e2f5e3 Significantly reduce number of error cases in 7zError
Also some of them were renamed.
2017-08-19 15:46:43 +03:00
Timofey Solomko b7d5b3c997 Store unknown properties of 7z file info 2017-08-16 21:52:37 +03:00
Timofey Solomko 5210c16cf9 Change logic of alignment requirements in byte functions of BitReader
Previously, functions like byte(), uint32(), etc had a side effect: they were silently permorming alignement (skipping all bits until next byte's boundary). I've considered this as a bad practice and now a call of align() function is required before using byte function. In addition, isAligned computed property was added to check if alignment is required.
2017-08-15 11:18:02 +03:00
Timofey Solomko b8eb63b834 Minor code improvements. 2017-08-06 18:17:43 +03:00
Timofey Solomko 45e70d5f7a Fix incorrect badge link in README 2017-07-29 23:38:03 +03:00
Timofey Solomko a222b05c71 Make winAttributes uint32 2017-07-29 15:35:05 +03:00
Timofey Solomko 8f9a0393f7 Remove unused 7zFileInfo.File properties 2017-07-29 15:34:46 +03:00
Timofey Solomko 8c558c5a77 Fix problems with isDirectory and times in 7zEntryInfo 2017-07-28 20:26:14 +03:00
Timofey Solomko 83c2a0d213 Add new EntryInfo struct for 7z and public function for getting them 2017-07-28 19:48:48 +03:00
Timofey Solomko c98ed2a62e Extract function to read "definedBits" as a BitReader extension 2017-07-28 19:19:23 +03:00
Timofey Solomko 3b31a51792 Use BitReader everywhere in 7z
It should protect from not updating index in DWP when we switch between DWP and BitReader.
2017-07-28 19:19:11 +03:00
Timofey Solomko e0f84717de Return only integer in multi-byte decode function for 7z
We never use its bytes for anything.
2017-07-28 19:03:14 +03:00
Timofey Solomko f4786d0cba Parse files' properties 2017-07-28 18:59:30 +03:00
Timofey Solomko 133d2325fc Another iteration of 7zip implementation
Extracted 7zProperty into a separate file; converted all structs to classes (to eliminates cows); replaced switches with ifs to ensure correct order of structures; overall completed implementation of structures (except fileinfo properties and packed header); codec renamed to coder.
2017-07-25 17:35:03 +03:00
Timofey Solomko 0b3d8523bd Numerous changes to 7z code
Added correct verion of DWP.multiByteDecode for 7-zip; added detection of packed headers, as well as reading of their streaminfos; added SevenZipProperty struct which used as ArchiveProperties in header and as Properties in FilesInfo (for now, until parsing of these properties is added).
2017-07-25 13:58:25 +03:00
Timofey Solomko 097aaf7b24 Complete 7zip structures implementations
Though some questions, problems and opportunities for improvements are remaining.
2017-07-25 00:35:57 +03:00
Timofey Solomko f76c2b575a More 7z progress 2017-07-18 23:28:17 +03:00
Timofey Solomko 507db69ddb Add a lot of 7z related files for structures 2017-07-18 21:06:37 +03:00