Zip: Increase size of buffer used to read data from the archive

This commit is contained in:
Roopesh Chander 2018-12-08 01:28:57 +05:30
parent aa915fc54c
commit 2e5d467bc7
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class ZipArchive {
throw ZipArchiveError.badArchive
}
let bufferSize = 1024
let bufferSize = 16384 // 16 kb
var fileNameBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize)
var dataBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize)