Timofey Solomko
d0a6263ea5
Prepare for 4.2.0 release
2018-03-04 12:34:32 +03:00
Timofey Solomko
08473e1aff
Add missing documentation for unknownExtendedHeaderRecords
2018-03-04 12:09:31 +03:00
Timofey Solomko
84478a3eb4
Prepare for second test release of 4.2.0
2018-03-03 20:51:26 +03:00
Timofey Solomko
a186631202
Merge branch 'develop' into release-4.2.0
2018-03-03 20:37:01 +03:00
Timofey Solomko
cb9d181754
[BZip2] Don't create new Huffman trees if maximum amount of trees possible is already reached
2018-03-03 20:30:49 +03:00
Timofey Solomko
8fc390a680
[swcomp] Rename PerfTest to Benchmark
2018-03-03 13:43:57 +03:00
Timofey Solomko
a1db77ae25
[TAR] Add a workaround for situation when prefix has trailing slash to prevent double slashes
2018-03-03 13:12:52 +03:00
Timofey Solomko
f2e7c6c4b3
[swcomp] Print addtional properties for all types of entry infos (as well as unknown pax records)
2018-03-03 13:05:50 +03:00
Timofey Solomko
a73f5ddcde
[TAR] Add unknownExtendedHeaderRecords to TarEntryInfo
2018-03-03 12:34:16 +03:00
Timofey Solomko
5c2e4af0d6
[TAR] Use new extended header properties in TarEntryInfo
2018-03-03 12:00:31 +03:00
Timofey Solomko
068b83d62f
[TAR] Add known extended header fields as properties to TarExtendedHeader
2018-03-03 01:14:51 +03:00
Timofey Solomko
4888f37f0f
Revert addition of BBD-related public APIs to Zlib, LZMA and BZip2
2018-03-02 23:32:39 +03:00
Timofey Solomko
ced314d797
[swcomp] Improve how we handle alternative options in container commands
2018-03-02 22:35:00 +03:00
Timofey Solomko
f3c568386a
[swcomp] Replace nine block size options for BZip2 command with a single one
2018-02-23 17:59:19 +03:00
Timofey Solomko
68bd0dac3d
Prepare for first test release of 4.2.0
2018-02-23 13:01:22 +03:00
Timofey Solomko
b19382833b
[Zlib] Add public unarchive(from:) function which uses BBD's ByteReader as its argument
2018-02-23 12:58:37 +03:00
Timofey Solomko
ba037786b4
[LZMA] Add public decompress(from:) function which uses BBD's ByteReader as its argument
2018-02-23 12:58:24 +03:00
Timofey Solomko
8b4ff5c040
[BZip2] Make decompress(_ bitReader:) function public and add "from" label to its argument
2018-02-23 12:58:24 +03:00
Timofey Solomko
3d502071bb
[ZIP] Use new BBD's converting inits when decompressing
2018-02-23 12:58:24 +03:00
Timofey Solomko
f95b8116f2
[ZIP] Add public API for accessing uid and gid
...
These APIs are: ZipEntryInfo.ownerID and groupID (named for consistency with TarEntryInfo).
2018-02-21 23:14:44 +03:00
Timofey Solomko
146162132b
[ZIP] Add internal support for Info-ZIP New unix extra field (0x7875)
2018-02-21 23:08:07 +03:00
Timofey Solomko
8315018de6
[ZIP] Add internal support for Info-ZIP unix extra field (0x7855)
2018-02-21 22:57:53 +03:00
Timofey Solomko
b813844382
ZlibHeader's initializers now use ByteReaders instead of LsbBitReaders
...
Bit reading capabilities aren't needed for parsing Zlib header.
2018-02-17 12:58:53 +03:00
Timofey Solomko
dc8a60b7c0
Swiftlinted
2018-02-17 12:55:31 +03:00
Timofey Solomko
f02361d486
Prepare for 4.1.1 release
2018-02-11 14:52:17 +03:00
Timofey Solomko
d1496deb95
[docs] Update docs comments for several TarEntryInfo properties
2018-02-11 14:31:44 +03:00
Timofey Solomko
1e67373a4e
[TAR] Fix incorrect entry names when prefix field is used
...
Apparently, prefix and name should be separated by "/" (when prefix is not NULL).
2018-02-11 13:13:14 +03:00
Timofey Solomko
e0bdd4f774
[TAR] Read magic as UInt64
2018-02-08 00:07:45 +03:00
Timofey Solomko
b9f325f91b
Small text/comments-related changes
2018-02-07 23:59:42 +03:00
Timofey Solomko
7319e26922
Prepare for 4.1.0 release
2018-01-31 20:30:09 +03:00
Timofey Solomko
c1c54add88
Prepare for second test release of 4.1.0
2018-01-29 21:14:43 +03:00
Timofey Solomko
e7511130a9
Merge branch 'develop' into release-4.1.0
2018-01-29 19:56:24 +03:00
Timofey Solomko
e710e37233
[BZip2] Add comments about smaller block size for compression
2018-01-29 19:55:42 +03:00
Timofey Solomko
d7390ec44f
[ZIP] Native time and date are now relative to current timezone and calendar used by system
2018-01-28 19:58:40 +03:00
Timofey Solomko
32d3cc6279
Extract ntfs timestamps reference date as static property
2018-01-28 19:17:52 +03:00
Timofey Solomko
e7a2707508
[swcomp] Fix 7zCommand using Zip's functions
2018-01-28 19:13:05 +03:00
Timofey Solomko
4adc62192f
[swcomp] Extract most of global printInfo function as an extension to ContainerEntryInfo
2018-01-17 13:13:57 +03:00
Timofey Solomko
67c906840d
[swcomp] Add commands for performance testing deflate and bzip2 compression
2018-01-17 12:57:45 +03:00
Timofey Solomko
baa16b00b5
[swcomp] Add block size options to bzip2 command
2018-01-17 12:54:33 +03:00
Timofey Solomko
8fa195d560
[TAR] Replace Int.roundTo512() function with bitwise inlinable version in common Extensions file
2018-01-17 12:12:29 +03:00
Timofey Solomko
7d99ab176a
[BZip2] Use not-reduced block size for decompression
2018-01-17 12:01:00 +03:00
Timofey Solomko
6781ff5e96
[swcomp] Implement ZipCommand and SevenZipCommand using ContainerCommand
2018-01-16 22:52:27 +03:00
Timofey Solomko
ab7c65249d
[swcomp] Add ContainerCommand protocol
...
This protocol represents common functionality for container-related commands (7z and zip). Extension to this protocol implements execute() function which is the same for both 7z and Zip commands.
2018-01-16 22:52:20 +03:00
Timofey Solomko
ca41cc3b5f
[BZip2] Additionally reduce block sizes by 1.25
...
This is required, because, apparently, original bzip2 implementation doesn't account for the fact that the initial RLE can cause expansion of the data.
2018-01-16 22:28:35 +03:00
Timofey Solomko
6b6ece5b6e
[swcomp] Protect against non-set (set to 0) permissions in containers
...
Such permissions made files unaccessable by everyone except root.
2018-01-15 22:37:04 +03:00
Timofey Solomko
726cc8a828
[swcomp] Update description of extract option of 7z, tar and zip commands
2018-01-15 22:35:59 +03:00
Timofey Solomko
344421f49c
Exclude SPM's .build directory from swiftlint and swiftlint
2018-01-15 21:49:54 +03:00
Timofey Solomko
d8a47efd44
[BZip2] Slightly optimise initial RLE in compress
2018-01-14 23:07:09 +03:00
Timofey Solomko
02fb0c2886
[BZip2] Fix incorrect block sizes in compression
...
I previously thought that 1KB = 1024 bytes, but apparently in this case it is just 1000 bytes.
2018-01-14 18:17:44 +03:00
Timofey Solomko
955ab734c8
[swcomp] Add info option to GZipCommand, which prints GZip header
2018-01-14 13:12:03 +03:00