Zip: Increase size of buffer used to read data from the archive
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -59,7 +59,7 @@ class ZipArchive {
|
|||||||
throw ZipArchiveError.badArchive
|
throw ZipArchiveError.badArchive
|
||||||
}
|
}
|
||||||
|
|
||||||
let bufferSize = 1024
|
let bufferSize = 16384 // 16 kb
|
||||||
var fileNameBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize)
|
var fileNameBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize)
|
||||||
var dataBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize)
|
var dataBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user