Commit Graph

  • 3caacff134 [swcomp] Add FileHandle closeCompat() extension Timofey Solomko 2022-01-09 14:33:22 +03:00
  • 3388cb047b [TAR] Rename the second argument of TarWriter.init to force Timofey Solomko 2022-01-09 14:17:00 +03:00
  • 3508148fd7 [Tests] Add tests for TarWriter Timofey Solomko 2022-01-09 14:08:53 +03:00
  • cc408864f8 [Tests] Add many tests for TarReader Timofey Solomko 2022-01-08 23:26:55 +03:00
  • c8d8c7b4fd [TAR] TarReader.read now throws DataError.truncated if the entry data is truncated Timofey Solomko 2022-01-08 23:13:46 +03:00
  • a3677a0cb7 [TAR] TarReader now sets TarEntry.data to nil for directories Timofey Solomko 2022-01-08 23:00:21 +03:00
  • 8abe3b1077 [Tests] Close FileHandle properly in TAR tests Timofey Solomko 2022-01-08 16:12:08 +03:00
  • 79a0aa8d08 Fix compilation issues on Linux and Windows due to the absence of autoreleasepool Timofey Solomko 2022-01-08 15:47:16 +03:00
  • c4aab7b648 [swcomp] Remove --use-rw-api option from tar command Timofey Solomko 2022-01-08 15:37:19 +03:00
  • 79295db930 Update copyright year to 2022 Timofey Solomko 2022-01-08 15:02:59 +03:00
  • 95d02c46a4 Upgrade xcode project and update swift in CI to 5.5.2 Timofey Solomko 2021-12-14 17:40:22 +03:00
  • 245f043025 [Tests] Move TarReader/Writer tests into their own files Timofey Solomko 2022-01-08 14:43:44 +03:00
  • a898c9aabe [swcomp] Use autoreleasepool for tar creating in rw-api version Timofey Solomko 2022-01-08 14:35:09 +03:00
  • 4c282c6fae [swcomp] Fix incorrect tar info printing when using TarReader Timofey Solomko 2022-01-08 14:34:34 +03:00
  • de9cf3916c [swcomp] Rewrite tar command info and extract rw-api versions using TarReader.process Timofey Solomko 2022-01-08 10:54:43 +03:00
  • ddb789b645 [TAR] Add TarReader.process(_:) Timofey Solomko 2022-01-08 10:54:08 +03:00
  • fe9453173a [TAR] Rename TarReader.next() to read() Timofey Solomko 2022-01-08 10:47:04 +03:00
  • b76b1f0ea5 Merge branch 'philmitchell-tar-rw' into tar-rw Timofey Solomko 2022-01-07 14:39:30 +03:00
  • c5bbc713b3 [swcomp] Use autoreleasepool to immediately free memory when untarring file with rw-api Phil Mitchell 2022-01-02 11:08:23 -08:00
  • 0a5378a016 [swcomp] Add a second version of TarCommand.execute for use-rw-api option Timofey Solomko 2021-11-21 12:37:36 +03:00
  • 643f2c9866 [TAR] Remove argument label from TarWriter.append Timofey Solomko 2021-11-21 12:36:56 +03:00
  • eaa0ae4b9b [swcomp] Add TarEntry.generateEntries function which uses TarWriter Timofey Solomko 2021-11-21 12:36:16 +03:00
  • 7733b293d3 [swcomp] Restructure writeEntries into writeFile and writeDirectory Timofey Solomko 2021-11-21 12:28:38 +03:00
  • c5efb9bf39 [swcomp] Clarify a couple of error messages Timofey Solomko 2021-11-21 11:56:07 +03:00
  • 44a0cc637d [Tests] Add a simple test for TarWriter Timofey Solomko 2021-11-20 23:45:27 +03:00
  • 4545d6b1f0 [TAR] Add TarWriter Timofey Solomko 2021-11-20 23:45:05 +03:00
  • 6306365cde [swcomp] Add use-rw-api option to tar command Timofey Solomko 2021-11-20 21:33:05 +03:00
  • 7c1a12bb0d [TAR] Initialize optional vars explicitly in TarParser and TarReader Timofey Solomko 2021-11-20 21:32:29 +03:00
  • 44ff3de44f [TAR] Add conditional compilation for FileHandle to fix issues with Swift 5.1 Timofey Solomko 2021-11-20 17:51:34 +03:00
  • 49becf4a9f [TAR] Remove getChunk and add getOffset and set(offset:) Timofey Solomko 2021-11-20 17:48:04 +03:00
  • 2ca4bcf3af [Tests] Add a simple test for TarReader Timofey Solomko 2021-11-20 12:29:05 +03:00
  • 993c36c509 [Tests] Add a function which returns a file handle to the test file Timofey Solomko 2021-11-20 12:28:52 +03:00
  • 61eac884da [TAR] Add TarReader Timofey Solomko 2021-11-20 12:28:33 +03:00
  • c708f5c248 Merge branch 'release-4.7.0' into develop Timofey Solomko 2021-11-04 12:13:02 +03:00
  • 0ff80e30b6 Merge branch 'release-4.7.0' 4.7.0 Timofey Solomko 2021-11-04 12:12:34 +03:00
  • 1e8ad0e2a5 Prepare for 4.7.0 release Timofey Solomko 2021-11-04 12:12:10 +03:00
  • 6971656b63 Two minor changes: make Checksums a caseless enum, fix a grammar mistake in a code comment Timofey Solomko 2021-11-04 12:10:39 +03:00
  • df9c3fc0e2 Update README for 4.7.0 Timofey Solomko 2021-11-03 20:45:10 +03:00
  • fbff12c435 [docs] Add new types to jazzy categories Timofey Solomko 2021-11-03 20:44:26 +03:00
  • 10905dc588 [docs] Minor fixes to LZ4 documentation Timofey Solomko 2021-11-03 20:41:48 +03:00
  • 9f7efc9276 [docs] Add documentation for LZ4 compression functions Timofey Solomko 2021-11-03 20:31:08 +03:00
  • d73fc791b1 [docs] Add documentation for DataError Timofey Solomko 2021-11-03 20:19:41 +03:00
  • e3ffb812b9 [docs] Add documentation for LZ4 decompression functions Timofey Solomko 2021-11-03 20:13:42 +03:00
  • 498d679062 Update Results.md for 4.7.0 Timofey Solomko 2021-11-01 23:49:31 +03:00
  • 5d63df36cf Prepare for the test release of 4.7.0 4.7.0-test Timofey Solomko 2021-10-30 13:06:45 +03:00
  • 87a94f17a8 Upgrade xcode project Timofey Solomko 2021-10-30 13:03:16 +03:00
  • a3332364a7 [Tests] Add many tests that check that checksum errors are thrown correctly Timofey Solomko 2021-10-29 19:26:33 +03:00
  • 20e8db701f [Tests] Add a test for correct usage of CP437 in ZIP Timofey Solomko 2021-10-28 19:54:25 +03:00
  • 4fa84e0546 [Tests] Add small string tests for Deflate Timofey Solomko 2021-10-27 07:53:30 +03:00
  • 06adf522d3 CI: update to swift 5.5.1 Timofey Solomko 2021-10-27 07:53:09 +03:00
  • 088d63ac03 [swcomp] Add --use-format option to tar command Timofey Solomko 2021-10-25 20:01:00 +03:00
  • 01c106228b [swcomp] Replace ConvertibleFromString extension for BZip2.BlockSize with an empty conformance Timofey Solomko 2021-10-25 20:00:22 +03:00
  • 68fd0e8f49 [swcomp] Compress after creating a tar container Timofey Solomko 2021-10-24 19:07:56 +03:00
  • 4443fd1339 [Tests] Add a test for correct match index behavior in Deflate compression Timofey Solomko 2021-10-24 15:05:04 +03:00
  • a47431f86d [Deflate] Don't use match index as a cycling index Timofey Solomko 2021-10-24 15:03:53 +03:00
  • dc93436269 [swcomp] Update to use SwiftCLI's property wrappers Timofey Solomko 2021-10-24 12:47:22 +03:00
  • f7a3d289cc Drop support for Swift 5.0 Timofey Solomko 2021-10-23 21:51:28 +03:00
  • 29eb6f346c [swcomp] Upgrade SwiftCLI to 6.0 Timofey Solomko 2021-10-23 21:45:22 +03:00
  • deeb02fb5c [LZ4] Remove remaining TODOs Timofey Solomko 2021-10-23 21:14:44 +03:00
  • 04aa3bd034 [LZ4] Add comments about implementation Timofey Solomko 2021-10-23 21:04:21 +03:00
  • 6e920a4ecc [LZ4] Fix compilation issues with swift pre-5.5 Timofey Solomko 2021-10-22 23:56:54 +03:00
  • f64c5264f8 [LZ4] Remove extra TODOs Timofey Solomko 2021-10-22 22:43:50 +03:00
  • 7a43328b8e [BZip2] Rename crc32 function for bzip2 Timofey Solomko 2021-10-22 21:55:14 +03:00
  • 33fd3001a0 [LZ4] Don't use optionals for storing dictionary in encoder Timofey Solomko 2021-10-22 21:51:58 +03:00
  • 8398f25b2b [swcomp] Don't accept block sizes larger than 4MB in LZ4 compression Timofey Solomko 2021-10-22 21:01:13 +03:00
  • c1496428d5 [LZ4] Don't accept block sizes larger than 4MB in compression Timofey Solomko 2021-10-22 20:53:56 +03:00
  • c2465fcd75 [LZ4] Verify in decoder that block size is not larger than max block size Timofey Solomko 2021-10-22 20:52:34 +03:00
  • 6d6a32b7ae [LZ4] Produce output as an arrary when decoding blocks Timofey Solomko 2021-10-22 19:40:17 +03:00
  • e860b9d4a9 [LZ4] Slightly optimize match calculation in compression Timofey Solomko 2021-10-22 19:27:23 +03:00
  • 100002cf8f [LZ4] Simplify removing dictionary from the output in decompression Timofey Solomko 2021-10-21 22:31:34 +03:00
  • 9e7faebf90 [LZ4] Don't use crc32 for matches identification Timofey Solomko 2021-10-21 22:31:00 +03:00
  • de7864c6db [Deflate] Replace crc32 of a match with bytes contacenated into UInt32 Timofey Solomko 2021-10-21 22:30:23 +03:00
  • aa9377b5f5 [Tests] Print compression ratios only with 3 figures after the dot Timofey Solomko 2021-10-20 15:02:52 +03:00
  • 7877ad9e35 [Tests] Add lz4 test for even smaller input Timofey Solomko 2021-10-20 15:02:26 +03:00
  • c1315b5727 [swcomp] Rename the --no-content-checksums option of lz4 command to --no-content-checksum Timofey Solomko 2021-10-20 15:01:56 +03:00
  • acb041cbf4 [LZ4] Fix incorrect encoding of small inputs Timofey Solomko 2021-10-20 15:00:57 +03:00
  • bb9574cefd [LZ4] Fix incorrect checks for the location of the last match Timofey Solomko 2021-10-20 14:48:43 +03:00
  • 1324744785 [swcomp] Print compression ratio in appropriate benchmarks Timofey Solomko 2021-10-18 21:38:31 +03:00
  • da8f4f7f5c [Deflate] Rename some variables in lengthEncode Timofey Solomko 2021-10-18 18:35:06 +03:00
  • 268aaaa356 [Deflate] Use start/endIndex instead of count property of data input Timofey Solomko 2021-10-18 18:31:40 +03:00
  • 113972bcce [Deflate] Reduce nesting in lengthEncode Timofey Solomko 2021-10-18 18:30:15 +03:00
  • f2be0db44f [Tests] Add a small test for fixed incorrect matching in LZ4 compression Timofey Solomko 2021-10-17 14:10:16 +03:00
  • 3a54c54ecc [LZ4] Fix incorrect matching Timofey Solomko 2021-10-17 14:09:36 +03:00
  • 743b83e4cb [LZ4] Add default values for dictionary and blockSize arguments of LZ4.compress Timofey Solomko 2021-10-17 14:07:17 +03:00
  • 19eca839d9 Add LZ4-related references to README Timofey Solomko 2021-10-16 21:59:31 +03:00
  • b64c5b81e9 [LZ4] Fix more potential issues with indices when resetting dictionary in compression Timofey Solomko 2021-10-16 21:59:18 +03:00
  • 088ec34ca6 [Tests] Add a test for 7-Zip with LZ4 Timofey Solomko 2021-10-16 21:58:02 +03:00
  • 6cdfc14f54 [7-Zip] Add support for LZ4 Timofey Solomko 2021-10-16 21:57:46 +03:00
  • c44901547c Add a subspec for LZ4 Timofey Solomko 2021-10-16 21:57:26 +03:00
  • 68f1428355 [swcomp] Add various compression options for LZ4 Timofey Solomko 2021-10-16 21:33:03 +03:00
  • 212e1808e7 [swcomp] Add benchmark command for LZ4 compression with dependent blocks Timofey Solomko 2021-10-16 20:31:32 +03:00
  • 2a1b250061 [Tests] Print compression ratio only after successful redecompression Timofey Solomko 2021-10-16 20:25:17 +03:00
  • 2491d77bfc [LZ4] Fix incorrect usage of dictionaries in compression Timofey Solomko 2021-10-16 20:21:59 +03:00
  • abed04acf9 [Tests] Add dictionary tests for LZ4 compression Timofey Solomko 2021-10-16 19:32:24 +03:00
  • 9915e8a1d7 [LZ4] Account for the min match length when checking for end-of-block condition Timofey Solomko 2021-10-16 19:31:58 +03:00
  • dac1814c8d [LZ4] Simplify last sequence creation Timofey Solomko 2021-10-16 16:26:41 +03:00
  • 20544178a0 [LZ4] Fix potential index issues when setting dictionary for block decoding Timofey Solomko 2021-10-16 16:25:58 +03:00
  • be899bc355 [LZ4] Fix incorrect block checksums in case of incompressible blocks Timofey Solomko 2021-10-16 16:25:15 +03:00
  • 254fe0c848 [LZ4] Strictly check that the block is compressible Timofey Solomko 2021-10-16 16:24:36 +03:00
  • 2c36a886be [Tests] Add a randomized test for LZ4 compression options Timofey Solomko 2021-10-16 15:50:42 +03:00