Timofey Solomko
c93a783d21
[docs] Fix grammar issues with regards to a/the/null articles, while/during, and extra commas
2019-03-13 12:27:08 +03:00
Timofey Solomko
ce47019097
Update copyright year to 2019
2019-01-02 23:15:43 +03:00
Timofey Solomko
12d8836529
[ZIP] Use the new ZipEntryInfoHelper and remove its properties from ZipEntryInfo
2019-01-01 13:28:50 +03:00
Timofey Solomko
2273c1e12c
[ZIP] Add a new struct, ZipEntryInfoHelper, which is supposed to store additional information to _help_ ZipContainer get entry's data
2019-01-01 13:27:46 +03:00
Timofey Solomko
59d31fdb5a
Swiftlinted for 4.5.0
2018-09-06 20:11:18 +03:00
Timofey Solomko
f5d8d9e81e
[LZMA] Add LZMAProperties initializer which reads lzma encoded properties from bytereader
2018-08-28 11:36:34 +03:00
Timofey Solomko
9a79aa8e51
[LZMA][ZIP] Add public function with data as first argument and internal function with byteReader instead which also accept LZMA properties and uncompressed size as
...
arguments; replace old internal decompress function used by ZIP with a new, more general one
2018-08-28 11:35:56 +03:00
Timofey Solomko
c9115f367b
[ZIP] Replace stored local header and cd entry in ZipEntryInfo with separate actually required properties
2018-08-13 11:38:42 +03:00
Timofey Solomko
ffd47c3528
[ZIP] Set ZipEntryInfo.crc properly depending on the presence of data descriptor
2018-08-13 11:37:44 +03:00
Timofey Solomko
65fdc944bf
[ZIP] Remove useless code comments
2018-08-12 20:59:57 +03:00
Timofey Solomko
f0308c1ed8
[ZIP] Add public crc32 property to EntryInfo
2018-08-12 20:59:08 +03:00
Timofey Solomko
1264a194c2
[docs] Refer to "standard" extra fields as "built-in"
2018-08-12 20:52:44 +03:00
Timofey Solomko
05054ba26d
[ZIP] Rename ByteReader+ZipString file to ByteReader+Zip
...
This is also consistent with tar extensions to ByteReader.
2018-08-12 19:31:47 +03:00
Timofey Solomko
113dcea56c
[ZIP] Rename ByteReader.getZipStringField to zipString
...
This is consistent with tar extensions to ByteReader
2018-08-12 19:30:34 +03:00
Timofey Solomko
3ed501cdfd
[ZIP] Replace ZipString class with fileprivate extensions to String and Data
2018-08-12 19:28:45 +03:00
Timofey Solomko
e467370de7
[LZMA] Remove second label from internal LZMA.decompress function and simplify uncompSize processing
2018-05-20 12:26:25 +03:00
Timofey Solomko
41ca39d1fa
Remove certain TODOs
2018-04-10 23:26:35 +03:00
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
1d838c1d7e
Slightly simplify and improve certain code
2018-04-07 13:38:00 +03:00
Timofey Solomko
d4b728125b
[docs] Add documentation for ZIP custom extra fields related APIs
2018-03-31 13:46:04 +03:00
Timofey Solomko
756cf23659
[ZIP] Add preconditions which check custom extra fields properties
2018-03-31 12:25:18 +03:00
Timofey Solomko
f5924af1c4
[ZIP] Correctly skip Info-ZIP Unix extra field in Central Directory
2018-03-31 12:25:18 +03:00
Timofey Solomko
0dc93bb077
[ZIP] Make names of properties of Standard extra fields shorter
2018-03-31 12:25:18 +03:00
Timofey Solomko
e35ea703dc
[ZIP] Add support for custom extra fields
2018-03-31 12:25:17 +03:00
Timofey Solomko
6ae80d98a6
[ZIP] Use new Standard Extra Field structs in central directory, local header and entry info
2018-03-31 12:25:17 +03:00
Timofey Solomko
de0fcec3cc
[ZIP] Add structs for all "standard" extra fields
...
These "standard" extra fields are already implemented in LocalHeader/CDEntry.
2018-03-31 12:25:17 +03:00
Timofey Solomko
afa5799df2
[ZIP] Add ZipExtraField protocol and ZipExtraFieldLocation enum
2018-03-31 12:25:17 +03:00
Timofey Solomko
112fa8bbb0
Date init from ntfs timestamp is no longer failable
...
The only reason for it to be was to propagate optionality of UInt64 argument. Instead we can if-let ntfs timestamp and call this initializer with non-optional argument. We also now force-unwrap ntfsReferenceDate, since it is likely to be a system problem if we cannot create definetely correct date from its components.
2018-03-25 23:42:53 +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
4888f37f0f
Revert addition of BBD-related public APIs to Zlib, LZMA and BZip2
2018-03-02 23:32:39 +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
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
2be06c8c0a
Use ByteReader in all ZIP-related code
...
We can do this since we don't have asynchronous concerns anymore.
2018-01-07 15:12:59 +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
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
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
a447e6adcf
Don't check unicodeness of zip strings if language encoding flags is set
2017-11-22 23:04:21 +03:00
Timofey Solomko
b9cebf13e9
Remove dwp functions with count argument
2017-11-22 22:08:02 +03:00
Timofey Solomko
556e42e179
Add and update documentation
2017-11-14 20:37:20 +03:00