59 Commits
Author SHA1 Message Date
Timofey Solomko a0ef7a3cfe Swiftlinted 2018-04-10 23:22:31 +03:00
Timofey Solomko d5c8600137 Use more new BBD functions 2018-04-10 22:37:20 +03:00
Timofey Solomko 05852b179b Use new int(fromBytes:) function 2018-04-10 22:37:16 +03:00
Timofey Solomko 019bbf0629 [7-Zip] Move conversion from UInt64 to Date from entry to file info 2018-03-25 23:33:57 +03:00
Timofey Solomko 311fe5ae80 [7-Zip] Add property to SevenZipFolder orderedCompressionMethods
It lazily returns compression methods in the order used by folder.
2018-03-18 15:47:43 +03:00
Timofey Solomko b123fff428 [7-Zip] Replace struct-ends ifs with guards 2018-03-18 00:58:40 +03:00
Timofey Solomko 895643b69e [7-Zip] Reduce code nesting in container 2018-03-18 00:57:27 +03:00
Timofey Solomko 309a07ed15 [docs] Slightly simplify notes about entries order of container functions 2018-03-17 15:37:41 +03:00
Timofey Solomko 2e3867afde [7-Zip] Some code and comments improvements to open and info functions 2018-03-17 15:34:12 +03:00
Timofey Solomko 42fdac0a79 [7-Zip] info(container:) no longer crash when SubstreamInfo doesn't have enough sizes or digests
In this cases it now sets them to nil, which is consistent with behavior of open(container:) function.
2018-03-17 15:32:07 +03:00
Timofey Solomko b301045d4a [7-Zip] Fix skipping entries in open(container:) when there is no SubstreamInfo
It was always intended to set data of entry to nil in this case, but for some reason it was never properly implemented.
2018-03-17 15:30:19 +03:00
Timofey Solomko abcc985da8 Accept 7z minor version from 1 to 4 2018-03-08 12:35:16 +03:00
Timofey Solomko 44f33bf02a Make bit reader and writer functions' parameters concrete classes
Previously, it was almost always protocols, which in some cases didn't make sense.
2018-01-07 22:27:36 +03:00
Timofey Solomko e714dc308b Updated copyright year to 2018 2018-01-03 19:44:18 +03:00
Timofey Solomko e986561487 Replace Int() conversions with toInt() functions 2018-01-03 19:22:15 +03:00
Timofey Solomko c8d92e56d3 Replace BitReader and ByteReader with BitByteData's implementations 2018-01-03 19:22:15 +03:00
Timofey Solomko 20ab480737 Complete renaming of DataWithPointer to ByteReader
This includes renaming pointerData variables to byteReader as well as renaming of files with extensions to ByteReader.
2018-01-03 19:22:14 +03:00
Timofey Solomko dcf18c73d6 Rename ByteReader.isAtTheEnd to isFinished 2018-01-03 19:22:13 +03:00
Timofey Solomko b9eeb1bc7c Rename ByteReader.index to offset 2018-01-03 19:22:13 +03:00
Timofey Solomko 3751e25c4f Rename DataWithPointer to ByteReader
This and following commits should ease switch to BitByteData usage.
2018-01-03 19:22:13 +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 36b4654521 Correct doc string for TarError.wrongField 2017-11-18 11:08:52 +03:00
Timofey Solomko 556e42e179 Add and update documentation 2017-11-14 20:37:20 +03:00
Timofey Solomko 88bf2ee0bb Swiftlint autocorrect 2017-11-11 13:31:10 +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 7eda3ba786 Remove 7zError.dataIsUnavailable 2017-11-10 22:36:34 +03:00
Timofey Solomko d18a295d39 Remove LZMA2Error.wrongProperties in favor of wrongDictionarySize 2017-11-10 22:26:52 +03:00
Timofey Solomko 788fe554f9 Remove local id variable in 7zCoder 2017-11-09 23:50:05 +03:00
Timofey Solomko dd7f4b2fc8 Add isEncryptionMethod property to 7zCoder and use it in 7zFolder 2017-11-09 19:39:34 +03:00
Timofey Solomko 8f8aeadb9c Remove 7zCoder.ID struct 2017-11-09 19:37:35 +03:00
Timofey Solomko 5851d7daf8 Rewrite decoding part of 7z using new compressionMethod property 2017-11-09 19:36:59 +03:00
Timofey Solomko 40e375a968 Add compressionMethod property to 7zCoder 2017-11-09 19:36:37 +03:00
Timofey Solomko 8349eb9e4f Add extension to CompressionMethod with init from 7zip's coder id 2017-11-09 19:32:26 +03:00
Timofey Solomko c445e09c92 Rename LZMATempDecoder into LZMADecoder 2017-10-29 12:54:35 +03:00
Timofey Solomko 0b96b8cf50 Update 7-zip to use new LZMA2 decoder 2017-10-29 12:51:29 +03:00
Timofey Solomko bca275f3aa Remove label from the argument of setProperties function 2017-10-29 12:37:28 +03:00
Timofey Solomko b1ff03def7 Use new LZMA decoder in 7-zip 2017-10-29 12:14:10 +03:00
Timofey Solomko f2b03d3e42 Restore conformance to Container protocol of SevenZipContainer
Somehow I forgot to this...
2017-10-28 17:58:09 +03:00
Timofey Solomko e92c5a609c Add CompressionMethod enum for common usage 2017-10-28 17:41:40 +03:00
Timofey Solomko a9dd1c4620 Remove "from" argument labels from various internal inits 2017-10-28 17:11:23 +03:00
Timofey Solomko 72d7d7e764 Add permissions property to ContainerEntryInfo 2017-10-23 20:15:40 +03:00
Timofey Solomko a22a05fedc Add a/c/m times to ContainerEntryInfo protocol.
This also adds accessTime from NTFS extra field in ZipEntryInfo
2017-10-23 20:13:40 +03:00
Timofey Solomko 0d3369a4e5 Rename some variables for consistency 2017-10-21 13:51:20 +03:00
Timofey Solomko 590814fb17 Make Entries and EntryInfos structs instead of classes 2017-10-21 13:29:01 +03:00
Timofey Solomko d5cb73f54c Remove UnixType in favor of ContainerEntryType 2017-10-21 12:13:00 +03:00
Timofey Solomko b6be23eb6d Slightly update docs comments 2017-10-11 13:47:23 +03:00
Timofey Solomko 9c30320d92 Add proper type setting for 7-Zip and remove isDirectory 2017-10-11 13:32:31 +03:00