Add comment

This commit is contained in:
araki 2017-04-13 17:56:45 +09:00
parent 34de327cff
commit 01653928c7
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,9 @@
import Foundation
import Cminizip
/// Extract zip data.
/// Discard file info, and only returns filename/data.
/// - Returns: [filename:filedata] dictionary
public func unzip(data: Data) -> [String: Data] {
var data = data
@ -64,6 +67,9 @@ public func unzip(data: Data) -> [String: Data] {
return ret
}
/// Create zip archive.
/// Doesn't contain file info, password.
/// - Returns: zip archive data
public func zip(entries: [String: Data]) -> Data {
var filefunc32 = zlib_filefunc_def();