From eea1805929a1c2e7b6c7aa4f2e6a7cd5f5662513 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Mon, 16 Jan 2017 23:01:10 +0300 Subject: [PATCH] Changed return type. --- Sources/ZipContainer.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/ZipContainer.swift b/Sources/ZipContainer.swift index cacce55b..5c078bcc 100644 --- a/Sources/ZipContainer.swift +++ b/Sources/ZipContainer.swift @@ -27,7 +27,7 @@ public enum ZipError: Error { public class ZipContainer { - public static func open(containerData data: Data) throws -> [String : Data] { + public static func open(containerData data: Data) throws -> [(entryName: String, entryData: Data)] { /// Object with input data which supports convenient work with bit shifts. var pointerData = DataWithPointer(data: data, bitOrder: .reversed) @@ -140,7 +140,7 @@ public class ZipContainer { // OK, now we are ready to read Central Directory itself. pointerData.index = Int(UInt(truncatingBitPattern: cdOffset)) - var result: [String : Data] = [:] + var result: [(entryName: String, entryData: Data)] = [] for _ in 0..