Timofey Solomko
3f07b0d571
[TAR] Define autoreleasepool on Android and Wasm
...
Apparently, Swift Package Index is trying to build SWC on these two platforms as well. While we do not currently support them, we can try to at least fix some issues.
2026-05-26 20:33:47 +08:00
Timofey Solomko
ea9aaccfb9
Update copyright year to 2026
2026-01-31 15:30:24 +08:00
Timofey Solomko
fa4af5803a
[TAR] Remove compatibility functions for FileHandle
2024-04-21 17:18:53 +03: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
db48b07ec2
[TAR] TarReader now always returns nil after reaching EOF
...
Previosuly, repeated calls of read() or process() after reaching EOF would result in DataError.truncated being thrown. This behavior caused issues when there was no EOF marker in the TAR container.
2022-12-17 19:02:19 +03:00
Timofey Solomko
55cc5a9036
[docs] Remove mentions of "older than Swift 5.2" versions since they are no longer supported
2022-09-24 14:27:21 +03:00
Timofey Solomko
52886a0bbf
[TAR] Remove compatibility with pre-Swift 5.2 compilers
2022-09-24 13:25:46 +03:00
Timofey Solomko
1d57f6adc1
[docs] Mention obj-c exceptions and swift 5.2 issues in the docs for TarReader/Writer
2022-01-22 16:24:26 +03:00
Timofey Solomko
552cb31336
[docs] Add documentation for TarReader
2022-01-22 14:26:54 +03:00
Timofey Solomko
c8d8c7b4fd
[TAR] TarReader.read now throws DataError.truncated if the entry data is truncated
2022-01-08 23:13:46 +03:00
Timofey Solomko
a3677a0cb7
[TAR] TarReader now sets TarEntry.data to nil for directories
...
This is the same behavior as TarContainer.open.
2022-01-08 23:00:21 +03:00
Timofey Solomko
79a0aa8d08
Fix compilation issues on Linux and Windows due to the absence of autoreleasepool
2022-01-08 15:47:16 +03:00
Timofey Solomko
79295db930
Update copyright year to 2022
2022-01-08 15:02:59 +03:00
Timofey Solomko
ddb789b645
[TAR] Add TarReader.process(_:)
2022-01-08 14:33:50 +03:00
Timofey Solomko
fe9453173a
[TAR] Rename TarReader.next() to read()
2022-01-08 14:33:40 +03:00
Timofey Solomko
7c1a12bb0d
[TAR] Initialize optional vars explicitly in TarParser and TarReader
2021-11-20 21:32:29 +03:00
Timofey Solomko
44ff3de44f
[TAR] Add conditional compilation for FileHandle to fix issues with Swift 5.1
2021-11-20 17:51:34 +03:00
Timofey Solomko
49becf4a9f
[TAR] Remove getChunk and add getOffset and set(offset:)
2021-11-20 17:48:04 +03:00
Timofey Solomko
61eac884da
[TAR] Add TarReader
2021-11-20 12:28:33 +03:00