Commit Graph

897 Commits

Author SHA1 Message Date
Timofey Solomko e05f917210 Improve compile time 2017-12-24 14:57:35 +03:00
Timofey Solomko 13d411e47c Optimise zip's needsUtf8 function 2017-12-24 14:57:34 +03:00
Timofey Solomko d7bb712031 Return Data instead of bytes array in Deflate.encodeHuffmanBlock 2017-12-24 14:49:32 +03:00
Timofey Solomko cce4d35ab7 Remove bitOrder argument from BitWriter.write(number:bitCount:) 2017-12-21 15:26:00 +03:00
Timofey Solomko d63d2977fb Only reverse bit order of codes in EncHuffmanTree if necessary
And it is necessary only for Deflate. This will allow us to remove bitOrder argument of BitWriter.write, which has very unclear semantics
2017-12-21 15:24:54 +03:00
Timofey Solomko 07d9d41db2 Remove BitReader and DWP initialisers from byte array 2017-12-05 22:21:52 +03:00
Timofey Solomko cd9bd4eec4 Remove DWP.previousByte 2017-12-05 22:21:32 +03:00
Timofey Solomko c090d37c43 Set versions to 4.0.2-dev 2017-11-27 21:33:30 +03:00
Timofey Solomko b471e66106 Prepare for 4.0.1 2017-11-25 18:43:39 +03:00
Timofey Solomko 5e46c5837d Swiftlint autocorrect 2017-11-25 18:39:27 +03:00
Timofey Solomko 225af08da0 Fix uint8 overflow crash in 7z
It was happening when number of files with empty stream was greater than 255.
2017-11-24 00:10:22 +03:00
Timofey Solomko 60051dd193 Add commands to swcomp which can do performance tests 2017-11-23 23:33:55 +03:00
Timofey Solomko 6f88a765a8 Check comp size after reading compressed data and simplify filters-apply code 2017-11-23 19:38:46 +03:00
Timofey Solomko a447e6adcf Don't check unicodeness of zip strings if language encoding flags is set 2017-11-22 23:04:21 +03:00
Timofey Solomko e4447ca86f Increase version 2017-11-22 22:57:25 +03:00
Timofey Solomko 3b0e3c5d74 Mark several extension functions as inline-always 2017-11-22 22:25:18 +03:00
Timofey Solomko d9954f4791 Use new toArray function in DWP.bytes 2017-11-22 22:24:45 +03:00
Timofey Solomko 1fa558f1a6 Add toArray extension function with count argument 2017-11-22 22:24:26 +03:00
Timofey Solomko dcfde952f2 Don't convert Data to UInt8 array in Deflate compression 2017-11-22 22:15:02 +03:00
Timofey Solomko b9cebf13e9 Remove dwp functions with count argument 2017-11-22 22:08:02 +03:00
Timofey Solomko 21a32f1d5a Add no-args uint functions to DWP and BitReader
Tests shows that these functions are faster than functions with arguments.
2017-11-22 20:57:22 +03:00
Timofey Solomko 7c6d6d22ff Replace UInt extensions with one extension to UnsignedInteger 2017-11-22 20:56:28 +03:00
Timofey Solomko 98fd2e4d1e Remove reverseBytes function and use built-in byteSwapped property instead 2017-11-22 20:55:17 +03:00
Timofey Solomko 0826ccc5ef Use smaller uint dwp functions where possible 2017-11-22 00:06:39 +03:00
Timofey Solomko 8aced32379 Extract function for calculating Deflate's static huffman block size 2017-11-19 20:05:45 +03:00
Timofey Solomko 9da406fc53 Small improvement to EncHuffTree.code function 2017-11-19 12:47:46 +03:00
Timofey Solomko e8064ae12b Prepare for 4.0.0 2017-11-18 13:31:10 +03:00
Timofey Solomko 36b4654521 Correct doc string for TarError.wrongField 2017-11-18 11:08:52 +03:00
Timofey Solomko 545e5c69fc Remove some redundancy from documentation 2017-11-14 21:35:30 +03:00
Timofey Solomko 556e42e179 Add and update documentation 2017-11-14 20:37:20 +03:00
Timofey Solomko e023088e5e Fix potential force unwrapping of nil value of size in TAR 2017-11-14 19:42:25 +03:00
Timofey Solomko a544475eca Increase version number in swcomp 2017-11-11 15:16:37 +03:00
Timofey Solomko 2f1ec48fbd Fix some outdated code in swcomp 2017-11-11 15:16:26 +03:00
Timofey Solomko 60ad7a15b9 Fix build problem on linux 2017-11-11 13:43:58 +03:00
Timofey Solomko 50ac2f0eaa Prepare for the secong test release of 4.0.0 2017-11-11 13:39:06 +03:00
Timofey Solomko 88bf2ee0bb Swiftlint autocorrect 2017-11-11 13:31:10 +03:00
Timofey Solomko 7ec2752ceb TarEntryInfo.name is no longer Optional 2017-11-11 13:28:27 +03:00
Timofey Solomko 8cf85305d4 ContainerEntryInfo.name is no longer Optional 2017-11-11 13:27:36 +03:00
Timofey Solomko 90fbb18337 7z file name can no longer be nil 2017-11-11 13:24:34 +03:00
Timofey Solomko 77d0781809 Simplify code for reading 7z file names 2017-11-11 13:24:22 +03:00
Timofey Solomko f181bd6e3d Remove throws keyword from LZMA decoders inits 2017-11-11 13:10:35 +03:00
Timofey Solomko 1164d8eafb Extract new DWP zip string extension into a separate file and rename remaning file 2017-11-11 13:05:12 +03:00
Timofey Solomko 8114e55285 Make ZipCommon.getStringField function as an extension of DataWithPointer 2017-11-11 12:59:54 +03:00
Timofey Solomko feb41deed1 Return Data instead of UInt8 arrays in internal decompress functions 2017-11-11 12:54:31 +03:00
Timofey Solomko 03e6ed4256 Deal with Data object instead of bytes array in ZipContainer's getEntryData() 2017-11-11 12:49:49 +03:00
Timofey Solomko acb3d4d231 Simplify Zip's LZMA code by utilizing main LZMA decompress function 2017-11-11 12:48:08 +03:00
Timofey Solomko 2ff3b12b73 Remove converting sizes to Int in ZipContainer.getEntryData 2017-11-11 12:46:55 +03:00
Timofey Solomko 6b8c90f0bd FileSystemType properties can no longer be nil 2017-11-11 11:46:22 +03:00
Timofey Solomko 7eda3ba786 Remove 7zError.dataIsUnavailable 2017-11-10 22:36:34 +03:00
Timofey Solomko fc0a5ad2cc Remove LZMAError.decoderIsNotInitialised 2017-11-10 22:29:30 +03:00