Commit Graph
217 Commits
Author SHA1 Message Date
Timofey Solomko 4c32333c0c Added associated values to WrongCheck errors. 2016-12-25 22:45:55 +03:00
Timofey Solomko 8107eaca9a Renamed and expanded several DeflateErrors. 2016-12-25 22:38:24 +03:00
Timofey Solomko 0ed89edf3d Small cleanup. 2016-12-25 22:30:52 +03:00
Timofey Solomko 329aa22d66 GzipArchive.ServiceInfo replaced with GzipHeader. 2016-12-25 22:29:50 +03:00
Timofey Solomko 862262d098 ZlibArchive.ServiceInfo replaced with ZlibHeader. 2016-12-25 22:22:56 +03:00
Timofey Solomko d1574786b2 HuffmanTree is no longer CustomStringConvertible. 2016-12-25 22:07:41 +03:00
Timofey Solomko 346268fa1d Gzip.ServiceInfo is now longer equatable. 2016-12-25 22:06:53 +03:00
Timofey Solomko 6a5a4c3420 Added new GzipHeader struct. 2016-12-25 22:05:59 +03:00
Timofey Solomko deb037d848 Several functions are now private. 2016-12-25 22:05:42 +03:00
Timofey Solomko 962e9c0aba Several classes are now final. 2016-12-25 22:05:14 +03:00
Timofey Solomko 6c08af8cec gzip: now calculates checksum from each member individually (not the entire uncomp data). 2016-12-25 15:29:50 +03:00
Timofey Solomko 65872b0a52 Reenabled support of stream padding and added support of several streams in one file (because such files exist). 2016-12-24 23:37:58 +03:00
Timofey Solomko eaf336e2f0 Now the state of lzmaDecoder is reset entirely. 2016-12-24 23:37:07 +03:00
Timofey Solomko c8a5813730 Removed append(contentsOf:) where possible and performed small cleanup. 2016-12-24 22:26:55 +03:00
Timofey Solomko 56a3ae9f02 Added adler-32 check to zlib and small docs updates. 2016-12-24 21:06:44 +03:00
Timofey Solomko d42e9ed16e Added new int extension function which reverses byte order in a number. 2016-12-24 21:05:05 +03:00
Timofey Solomko 07786773c5 Added gzip file members support. 2016-12-24 20:37:35 +03:00
Timofey Solomko 888ad5ec80 Added two variables to DWP which will be useful later. 2016-12-24 20:35:03 +03:00
Timofey Solomko e8c2bf992d Added check of header’s crc. 2016-12-24 20:33:03 +03:00
Timofey Solomko 3c4ca8f81c Added check of crc and isize of uncompressed data in Gzip. 2016-12-24 20:14:07 +03:00
Timofey Solomko 3939b0396d GZIP: Renamed NonZeroReservedFlags to WrongFlags, added WrongCRC error, some docs updates. 2016-12-24 20:02:40 +03:00
Timofey Solomko dfe83f8297 Removed argument lable pointerData from internal deflate-related methods. 2016-12-24 20:00:43 +03:00
Timofey Solomko 04106bfa8a Some changes to make deflate/bzip2 faster. 2016-12-24 18:42:56 +03:00
Timofey Solomko f5270f9674 Fixed build error when range decoder is reset. 2016-12-24 15:10:42 +03:00
Timofey Solomko 836843a1cc One more fix for multiByteDecode… 2016-12-24 15:10:18 +03:00
Timofey Solomko c64f739cb2 RangeDecoder is now reset each time. 2016-12-24 15:00:18 +03:00
Timofey Solomko e8d103776b Fixed padding processing for blocks and index once again. 2016-12-24 14:04:18 +03:00
Timofey Solomko f1f2240867 Small change to crc calculations. 2016-12-24 14:03:42 +03:00
Timofey Solomko e4181a76a9 Swiftlinted. 2016-12-24 12:34:23 +03:00
Timofey Solomko e520458a11 Fixed problem caused by not specifying uncompressed size before lzma decoding. 2016-12-23 23:37:09 +03:00
Timofey Solomko b61a5a466d Moved multiByteDecode into DWP. Hopefully, now it works properly (I’ve also made some changes to it). 2016-12-23 23:36:35 +03:00
Timofey Solomko bd411906be Small cleanup in lzmadecoder. 2016-12-23 21:48:07 +03:00
Timofey Solomko c57f7f3a5d Fixed error due to unitialized lc,lp,pb befor resetting state. 2016-12-23 21:47:55 +03:00
Timofey Solomko c0fefcc77b Fixed reset bits calculation. 2016-12-23 21:47:19 +03:00
Timofey Solomko 35052bdc28 Added check of backwardSize, disabled stream padding. 2016-12-23 21:33:10 +03:00
Timofey Solomko 1468914491 Fixed problems with calculation of unpadded size of a block. 2016-12-23 21:20:33 +03:00
Timofey Solomko 4d35231c32 Dictionary size is now passed around and fixed the problem with big-endian integers. 2016-12-23 21:20:03 +03:00
Timofey Solomko a5158e27f2 Fixed crash in crc64. 2016-12-23 21:19:18 +03:00
Timofey Solomko d41bab2136 DWP is now final. 2016-12-23 20:40:48 +03:00
Timofey Solomko d00944bb94 Small docs changes in XZ. 2016-12-23 20:40:38 +03:00
Timofey Solomko 39050dd7d0 Probably completed lzma2. 2016-12-23 20:40:30 +03:00
Timofey Solomko 4bb92c00d5 A new attempt has been made to make an LZMADecoder initializer which can support both LZMA and LZMA2. Also lzma Constants are no longer a substruct. 2016-12-23 20:09:46 +03:00
Timofey Solomko ec8f15965a Added new convenience function for OutWindow. 2016-12-23 20:07:42 +03:00
Timofey Solomko d3650edbeb Finished LZMA/LZMADecoder. 2016-12-23 19:52:08 +03:00
Timofey Solomko 60008cc5c8 Moved initial values for properties of lzma classes to their declarations (where possible). 2016-12-23 19:16:28 +03:00
Timofey Solomko 5b942c31b7 pointerData is now stored as an instance property in all LZMA classes. 2016-12-23 19:09:50 +03:00
Timofey Solomko c95edcec2f lzmaDecode method rewritten as an instance method. 2016-12-23 19:02:29 +03:00
Timofey Solomko 53a80f8a79 Splitted code from LZMA into several files and added new class LZMADecoder. 2016-12-23 17:43:40 +03:00
Timofey Solomko 1aa51c18e0 Removed StreamHeader structure. 2016-12-23 15:13:18 +03:00
Timofey Solomko 8cc882619b Implemented parsing of index in xz and enable support of crc64 check. 2016-12-23 14:41:28 +03:00