Timofey Solomko
d9bb44001d
Merge branch 'hotfix-4.9.1' into develop
2026-06-13 16:21:33 +08:00
Timofey Solomko
8b10dd5c0c
[GZip] Add null terminator as a zero byte instead of character
...
Fixes #66 .
2026-06-13 16:10:08 +08:00
Timofey Solomko
8dc5cb575c
[GZip] Mark some structs as Sendable
2026-05-26 11:56:33 +08:00
Timofey Solomko
567a5473d1
[GZip] Move bytes left check out of the loop when reading extra fields
2026-03-01 20:35:22 +08:00
Timofey Solomko
273b6ed9e9
Remove redundant imports
2026-02-18 12:21:57 +08:00
Timofey Solomko
ea9aaccfb9
Update copyright year to 2026
2026-01-31 15:30:24 +08:00
Timofey Solomko
ed66991cbd
Update copyright year to 2024
2024-01-11 16:57:04 +03:00
Timofey Solomko
43132fc39d
Update copyright year to 2023
2023-02-07 15:31:45 +02:00
Timofey Solomko
c1ecadbcb7
Update some code comments
2022-12-17 19:02:19 +03:00
Timofey Solomko
32d6dc8ae6
[GZip] Improve truncation detection in the footer and optional parts of the header
2022-10-21 19:27:25 +03:00
Timofey Solomko
dafd474b96
[GZip] Add a new parameter with a default value to GzipArchive.archive which allows to set any extra fields
2022-10-14 20:23:19 +03:00
Timofey Solomko
03e23231fa
[GZip] Add processing of extra fields in GzipHeader
2022-10-14 19:59:18 +03:00
Timofey Solomko
241e523ba7
[GZip] Add a struct that represents header's extra field
2022-10-14 19:57:20 +03:00
Timofey Solomko
c5362651dd
[GZip] Change GzipHeader properties to var instead of let
2022-10-14 19:32:23 +03:00
Timofey Solomko
f9297d96a1
[GZip] Reject non byte-aligned members
...
The reasoning here is that GZip format is "byte-oriented" and not "bit-oriented", so seemingly GZip members (headers) that begin not on a byte boundary should be disallowed.
2022-10-14 19:30:39 +03:00
Timofey Solomko
74ae7c2edc
[GZip] Adjust detection of truncated inputs
2022-05-17 13:33:04 +03:00
Timofey Solomko
0f2b393c5c
[GZip] Fix incorrect detection of truncated archives
2022-05-13 21:10:47 +03:00
Timofey Solomko
79295db930
Update copyright year to 2022
2022-01-08 15:02:59 +03:00
Timofey Solomko
aba14af8c5
Small changes to code comments
2021-07-17 11:14:53 +03:00
Timofey Solomko
e83f23effa
Update copyright year to 2021
2021-01-11 11:20:57 +02:00
Timofey Solomko
deab72a831
Merge branch 'hotfix-4.5.7' into develop
2020-10-16 15:57:08 +03:00
Timofey Solomko
00af5a9319
[BZip2][GZip][LZMA][XZ][Zlib] Fix crashes when opening very small files
...
Instead errors are now thrown.
2020-10-15 23:35:34 +03:00
Timofey Solomko
a844b34436
Update copyright year to 2020
2020-03-20 09:43:42 +03:00
Timofey Solomko
f6949a8f66
Replace the usage of the deprecated Data(bytes:) initializer
2020-03-20 09:40:48 +03:00
Timofey Solomko
82f150d437
Use LsbBitReader argument in the Gzip and Zlib headers' initializers
...
This fixes issues arising from the removal of _subclass_ relations between bit and byte readers in BBD.
2020-01-02 12:29:24 +03:00
Timofey Solomko
31ec1f1553
Update copyright year to 2020
2020-01-01 19:06:33 +03:00
Timofey Solomko
75b21ae107
Replace usage of ByteReader with LittleEndianByteReader
2019-05-01 19:34:30 +03:00
Timofey Solomko
db82490ed8
Replace the usage of the deprecated Data(bytes:) initializer
2019-05-01 19:30:48 +03:00
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
d5c8600137
Use more new BBD functions
2018-04-10 22:37:20 +03:00
Timofey Solomko
e714dc308b
Updated copyright year to 2018
2018-01-03 19:44:18 +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
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
0826ccc5ef
Use smaller uint dwp functions where possible
2017-11-22 00:06:39 +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
feb41deed1
Return Data instead of UInt8 arrays in internal decompress functions
2017-11-11 12:54:31 +03:00
Timofey Solomko
6b8c90f0bd
FileSystemType properties can no longer be nil
2017-11-11 11:46:22 +03:00
Timofey Solomko
3373d43844
Improve GzipError.wrongCRC in same to XZ archive way
2017-11-04 22:02:54 +03:00
Timofey Solomko
29cd16bf72
Use OptionSet for flags in GzipHeader
2017-11-04 20:14:47 +03:00
Timofey Solomko
dc6ad70168
Small updates to comments in a couple of cases
2017-10-28 17:50:00 +03:00
Timofey Solomko
dd54c1ae5c
Use new CompressionMethod in GZip
2017-10-28 17:41:59 +03:00
Timofey Solomko
44c0e65d7a
Use new FileSystemType enum in GZip
2017-10-28 17:07:36 +03:00
Timofey Solomko
8b22ff2b6a
Update code with swift 4 changes to strings
2017-10-07 12:26:11 +03:00
Timofey Solomko
843896edcf
Move source code files into subfolders
2017-10-06 23:10:01 +03:00