mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2026-11-04 18:42:20 +00:00
use zlib's full gzip support
simpler code and seems to be generally faster
This commit is contained in:
1 parent
3e47d6cd01
commit
aff578b9a6
2 files changed
+36
-157
No files matched your search
@@ -75,9 +75,9 @@ public struct ApkIndexUpdater {
|
||||
do {
|
||||
var file: any InputStream = try FileInputStream(indexURL)
|
||||
//var file: any InputStream = try MemoryInputStream(buffer: try Data(contentsOf: indexURL))
|
||||
tars.append(try GZip.read(inStream: &file))
|
||||
tars.append(try GZip.read(inStream: &file))
|
||||
|
||||
var gzip = GZipReader()
|
||||
tars.append(try gzip.read(inStream: &file))
|
||||
tars.append(try gzip.read(inStream: &file))
|
||||
} catch {
|
||||
fatalError(error.localizedDescription)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user