Merge branch 'release-2.1.0'

This commit is contained in:
Timofey Solomko
2017-01-29 12:04:56 +03:00
102 changed files with 3016 additions and 336 deletions
+1
View File
@@ -2,3 +2,4 @@
*.deflate filter=lfs diff=lfs merge=lfs -text
*.answer filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
+3 -3
View File
@@ -4,9 +4,9 @@ exclude: Tests/
swift_version: 3.0.2
author: Timofey Solomko
module: SWCompression
module_version: 2.0.0
copyright: '© 2016 Timofey Solomko'
module_version: 2.1.0
copyright: '© 2017 Timofey Solomko'
readme: README.md
github_url: https://github.com/tsolomko/SWCompression
github_file_prefix: https://github.com/tsolomko/SWCompression/tree/v2.0.0
github_file_prefix: https://github.com/tsolomko/SWCompression/tree/v2.1.0
theme: fullwidth
+6
View File
@@ -1,4 +1,10 @@
# Changelog
v2.1.0
----------------
- ZIP containers support.
- HuffmanTree is no longer part of SWCompression/Common.
- Updated documentation.
v2.0.1
----------------
- Fixed incorrect reading adler32 checksum from zlib archives.
+5
View File
@@ -26,6 +26,8 @@ And here comes SWCompression: no Objective-C, pure Swift.
Features
----------------
- Containers:
- ZIP (complying to ISO/IEC 21320 standard)
- (De)compression algorithms:
- LZMA/LZMA2
- Deflate
@@ -173,3 +175,6 @@ References
- [LZMA SDK and specification](http://www.7-zip.org/sdk.html)
- [XZ specification](http://tukaani.org/xz/xz-file-format-1.0.4.txt)
- [Wikipedia article about LZMA](https://en.wikipedia.org/wiki/LempelZivMarkov_chain_algorithm)
- [.ZIP Application Note](http://www.pkware.com/appnote)
- [ISO/IEC 21320-1](http://www.iso.org/iso/catalogue_detail.htm?csnumber=60101)
- [List of defined ZIP extra fields](https://opensource.apple.com/source/zip/zip-6/unzip/unzip/proginfo/extra.fld)
+10 -4
View File
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "SWCompression"
s.version = "2.0.1"
s.version = "2.1.0"
s.summary = "Framework with implementations in Swift of different (de)compression algorithms"
s.description = <<-DESC
@@ -29,12 +29,12 @@ Pod::Spec.new do |s|
# It should not be included directly in Podfile.
s.subspec 'Common' do |sp|
sp.public_header_files = 'Sources/Service/SWCompression.h'
sp.source_files = "Sources/{CheckSums.swift,DataWithPointer.swift,Extensions.swift,HuffmanTree.swift,Protocols.swift,Service/*.swift,Service/*.h}"
sp.source_files = "Sources/{CheckSums.swift,DataWithPointer.swift,Extensions.swift,Protocols.swift,Service/*.swift,Service/*.h}"
end
s.subspec 'Deflate' do |sp|
sp.dependency 'SWCompression/Common'
sp.source_files = 'Sources/Deflate.swift'
sp.source_files = 'Sources/{Deflate.swift,HuffmanTree.swift}'
end
s.subspec 'GZip' do |sp|
@@ -51,7 +51,7 @@ Pod::Spec.new do |s|
s.subspec 'BZip2' do |sp|
sp.dependency 'SWCompression/Common'
sp.source_files = 'Sources/BZip2.swift'
sp.source_files = 'Sources/{BZip2.swift,HuffmanTree.swift}'
end
s.subspec 'LZMA' do |sp|
@@ -65,4 +65,10 @@ Pod::Spec.new do |s|
sp.source_files = 'Sources/XZArchive.swift'
end
s.subspec 'ZIP' do |sp|
sp.dependency 'SWCompression/Common'
sp.dependency 'SWCompression/Deflate'
sp.source_files = 'Sources/ZipContainer.swift'
end
end
+35 -1
View File
@@ -33,6 +33,11 @@
065569761DC65C2B00A47E66 /* GzipArchive.swift in Sources */ = {isa = PBXBuildFile; fileRef = 063364E21DC52979007E313F /* GzipArchive.swift */; };
065569771DC65C2B00A47E66 /* ZlibArchive.swift in Sources */ = {isa = PBXBuildFile; fileRef = 064492581DC606D400F10981 /* ZlibArchive.swift */; };
065569781DC65C2B00A47E66 /* Deflate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 061FCE251DBCC4BE0052F7BE /* Deflate.swift */; };
067518361E2A86F700D16354 /* ZipContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 067518351E2A86F700D16354 /* ZipContainer.swift */; };
067518371E2A86F700D16354 /* ZipContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 067518351E2A86F700D16354 /* ZipContainer.swift */; };
067518381E2A86F700D16354 /* ZipContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 067518351E2A86F700D16354 /* ZipContainer.swift */; };
067518391E2A86F700D16354 /* ZipContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 067518351E2A86F700D16354 /* ZipContainer.swift */; };
0675183D1E2A883600D16354 /* ZipTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0675183C1E2A883600D16354 /* ZipTests.swift */; };
0680E1B11DDA2D7C005C05EB /* ZlibTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0680E1B01DDA2D7C005C05EB /* ZlibTests.swift */; };
0680E1B31DDA3D0A005C05EB /* GzipTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0680E1B21DDA3D0A005C05EB /* GzipTests.swift */; };
0680E1B51DDA4076005C05EB /* Bzip2Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0680E1B41DDA4075005C05EB /* Bzip2Tests.swift */; };
@@ -80,6 +85,9 @@
06BB8F311E0C2C720079FB9E /* LZMA2.swift in Sources */ = {isa = PBXBuildFile; fileRef = 06BB8F2F1E0C2C720079FB9E /* LZMA2.swift */; };
06BB8F321E0C2C720079FB9E /* LZMA2.swift in Sources */ = {isa = PBXBuildFile; fileRef = 06BB8F2F1E0C2C720079FB9E /* LZMA2.swift */; };
06BB8F331E0C2C720079FB9E /* LZMA2.swift in Sources */ = {isa = PBXBuildFile; fileRef = 06BB8F2F1E0C2C720079FB9E /* LZMA2.swift */; };
06BD0D231E3D0C630054AA5C /* SWCompressionSourceCode.zip in Resources */ = {isa = PBXBuildFile; fileRef = 06BD0D201E3D0C630054AA5C /* SWCompressionSourceCode.zip */; };
06BD0D241E3D0C630054AA5C /* TestDataDescriptor.zip in Resources */ = {isa = PBXBuildFile; fileRef = 06BD0D211E3D0C630054AA5C /* TestDataDescriptor.zip */; };
06BD0D251E3D0C630054AA5C /* TestZip64.zip in Resources */ = {isa = PBXBuildFile; fileRef = 06BD0D221E3D0C630054AA5C /* TestZip64.zip */; };
06BE1AD21DB410F100EE0F59 /* SWCompression.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06BE1AC81DB410F100EE0F59 /* SWCompression.framework */; };
06CC18601DE35269003532F5 /* test1.answer in Resources */ = {isa = PBXBuildFile; fileRef = 06CC183F1DE35269003532F5 /* test1.answer */; };
06CC18611DE35269003532F5 /* test2.answer in Resources */ = {isa = PBXBuildFile; fileRef = 06CC18401DE35269003532F5 /* test2.answer */; };
@@ -155,6 +163,8 @@
0655693F1DC659FF00A47E66 /* SWCompression.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SWCompression.framework; sourceTree = BUILT_PRODUCTS_DIR; };
0655694C1DC65A8000A47E66 /* SWCompression.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SWCompression.framework; sourceTree = BUILT_PRODUCTS_DIR; };
065569591DC65A9400A47E66 /* SWCompression.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SWCompression.framework; sourceTree = BUILT_PRODUCTS_DIR; };
067518351E2A86F700D16354 /* ZipContainer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ZipContainer.swift; sourceTree = "<group>"; };
0675183C1E2A883600D16354 /* ZipTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ZipTests.swift; sourceTree = "<group>"; };
0680E1B01DDA2D7C005C05EB /* ZlibTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ZlibTests.swift; sourceTree = "<group>"; };
0680E1B21DDA3D0A005C05EB /* GzipTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GzipTests.swift; sourceTree = "<group>"; };
0680E1B41DDA4075005C05EB /* Bzip2Tests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Bzip2Tests.swift; sourceTree = "<group>"; };
@@ -178,6 +188,9 @@
06B374C81E0EECCC00064853 /* random_file.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; path = random_file.gz; sourceTree = "<group>"; };
06B374CA1E0EECD500064853 /* random_file.zlib */ = {isa = PBXFileReference; lastKnownFileType = file; path = random_file.zlib; sourceTree = "<group>"; };
06BB8F2F1E0C2C720079FB9E /* LZMA2.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LZMA2.swift; sourceTree = "<group>"; };
06BD0D201E3D0C630054AA5C /* SWCompressionSourceCode.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = SWCompressionSourceCode.zip; sourceTree = "<group>"; };
06BD0D211E3D0C630054AA5C /* TestDataDescriptor.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = TestDataDescriptor.zip; sourceTree = "<group>"; };
06BD0D221E3D0C630054AA5C /* TestZip64.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = TestZip64.zip; sourceTree = "<group>"; };
06BE1AC81DB410F100EE0F59 /* SWCompression.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SWCompression.framework; sourceTree = BUILT_PRODUCTS_DIR; };
06BE1AD11DB410F100EE0F59 /* SWCompressionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SWCompressionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
06BE1AD81DB410F100EE0F59 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -296,7 +309,6 @@
06E234811E06A6C200F18798 /* CheckSums.swift */,
063DF1051DE1F07800F38082 /* DataWithPointer.swift */,
063DF1061DE1F07800F38082 /* Extensions.swift */,
063DF1081DE1F07800F38082 /* HuffmanTree.swift */,
063DF1091DE1F07800F38082 /* Protocols.swift */,
);
path = Common;
@@ -314,6 +326,16 @@
path = Service;
sourceTree = "<group>";
};
06BD0D1F1E3D0C630054AA5C /* ZIP */ = {
isa = PBXGroup;
children = (
06BD0D201E3D0C630054AA5C /* SWCompressionSourceCode.zip */,
06BD0D211E3D0C630054AA5C /* TestDataDescriptor.zip */,
06BD0D221E3D0C630054AA5C /* TestZip64.zip */,
);
path = ZIP;
sourceTree = "<group>";
};
06BE1ABE1DB410F100EE0F59 = {
isa = PBXGroup;
children = (
@@ -340,11 +362,13 @@
children = (
06A3931F1DE06FFE00182E12 /* Common */,
069D0FFE1E0D6CF200D8AA87 /* LZMA */,
063DF1081DE1F07800F38082 /* HuffmanTree.swift */,
06E2346B1E068E9600F18798 /* XZArchive.swift */,
063364E21DC52979007E313F /* GzipArchive.swift */,
064492581DC606D400F10981 /* ZlibArchive.swift */,
061FCE251DBCC4BE0052F7BE /* Deflate.swift */,
06FED40B1DD7717E0013DFB2 /* BZip2.swift */,
067518351E2A86F700D16354 /* ZipContainer.swift */,
06A3933D1DE070B500182E12 /* Service */,
);
path = Sources;
@@ -361,6 +385,7 @@
0680E1B21DDA3D0A005C05EB /* GzipTests.swift */,
0680E1B01DDA2D7C005C05EB /* ZlibTests.swift */,
061FCE2C1DBCC6A30052F7BE /* Constants.swift */,
0675183C1E2A883600D16354 /* ZipTests.swift */,
06BE1AD81DB410F100EE0F59 /* Info.plist */,
);
path = Tests;
@@ -375,6 +400,7 @@
06CC184E1DE35269003532F5 /* Deflate */,
06CC18561DE35269003532F5 /* GZip */,
069AC2161E02DE490041AC13 /* LZMA */,
06BD0D1F1E3D0C630054AA5C /* ZIP */,
06CC185F1DE35269003532F5 /* test.zlib */,
06B374CA1E0EECD500064853 /* random_file.zlib */,
);
@@ -674,6 +700,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
06BD0D241E3D0C630054AA5C /* TestDataDescriptor.zip in Resources */,
06CC18711DE35269003532F5 /* test4.deflate in Resources */,
06E234781E069A7F00F18798 /* test1.xz in Resources */,
06CC18621DE35269003532F5 /* test3.answer in Resources */,
@@ -686,12 +713,14 @@
06CC18781DE35269003532F5 /* test4.gz in Resources */,
06CC187B1DE35269003532F5 /* test7.gz in Resources */,
06CC18611DE35269003532F5 /* test2.answer in Resources */,
06BD0D251E3D0C630054AA5C /* TestZip64.zip in Resources */,
06CC18701DE35269003532F5 /* test3.deflate in Resources */,
06CC186F1DE35269003532F5 /* test2.deflate in Resources */,
06E2347B1E069A7F00F18798 /* test4.xz in Resources */,
06CC186C1DE35269003532F5 /* test6.bz2 in Resources */,
06CC186B1DE35269003532F5 /* test5.bz2 in Resources */,
06CC18651DE35269003532F5 /* test6.answer in Resources */,
06BD0D231E3D0C630054AA5C /* SWCompressionSourceCode.zip in Resources */,
06CC18631DE35269003532F5 /* test4.answer in Resources */,
06B374CB1E0EECD500064853 /* random_file.zlib in Resources */,
06FCA0581E033DDA00B6932F /* test8.answer in Resources */,
@@ -735,6 +764,7 @@
069D0FF11E0D6CB600D8AA87 /* LZMARangeDecoder.swift in Sources */,
069D0FEC1E0D6C9F00D8AA87 /* LZMAOutWindow.swift in Sources */,
063DF1171DE1F07800F38082 /* Protocols.swift in Sources */,
067518371E2A86F700D16354 /* ZipContainer.swift in Sources */,
069D0FFB1E0D6CE900D8AA87 /* LZMALenDecoder.swift in Sources */,
06E234831E06A6C200F18798 /* CheckSums.swift in Sources */,
069AC20E1E02DB1D0041AC13 /* LZMA.swift in Sources */,
@@ -759,6 +789,7 @@
069D0FF21E0D6CB600D8AA87 /* LZMARangeDecoder.swift in Sources */,
069D0FED1E0D6C9F00D8AA87 /* LZMAOutWindow.swift in Sources */,
063DF11D1DE1F2E200F38082 /* Protocols.swift in Sources */,
067518381E2A86F700D16354 /* ZipContainer.swift in Sources */,
069D0FFC1E0D6CE900D8AA87 /* LZMALenDecoder.swift in Sources */,
06E234841E06A6C200F18798 /* CheckSums.swift in Sources */,
069AC20F1E02DB1D0041AC13 /* LZMA.swift in Sources */,
@@ -783,6 +814,7 @@
069D0FF31E0D6CB600D8AA87 /* LZMARangeDecoder.swift in Sources */,
069D0FEE1E0D6C9F00D8AA87 /* LZMAOutWindow.swift in Sources */,
063DF1181DE1F07800F38082 /* Protocols.swift in Sources */,
067518391E2A86F700D16354 /* ZipContainer.swift in Sources */,
069D0FFD1E0D6CE900D8AA87 /* LZMALenDecoder.swift in Sources */,
06E234851E06A6C200F18798 /* CheckSums.swift in Sources */,
069AC2101E02DB1D0041AC13 /* LZMA.swift in Sources */,
@@ -807,6 +839,7 @@
069D0FF01E0D6CB600D8AA87 /* LZMARangeDecoder.swift in Sources */,
069D0FEB1E0D6C9F00D8AA87 /* LZMAOutWindow.swift in Sources */,
063DF1161DE1F07800F38082 /* Protocols.swift in Sources */,
067518361E2A86F700D16354 /* ZipContainer.swift in Sources */,
069D0FFA1E0D6CE900D8AA87 /* LZMALenDecoder.swift in Sources */,
06E234821E06A6C200F18798 /* CheckSums.swift in Sources */,
069AC20D1E02DB1D0041AC13 /* LZMA.swift in Sources */,
@@ -831,6 +864,7 @@
0680E1B11DDA2D7C005C05EB /* ZlibTests.swift in Sources */,
0680E1B31DDA3D0A005C05EB /* GzipTests.swift in Sources */,
06E234801E069ABD00F18798 /* XzTests.swift in Sources */,
0675183D1E2A883600D16354 /* ZipTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
+2 -2
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 12.11.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
@@ -43,7 +43,7 @@ public enum BZip2Error: Error {
case SymbolNotFound
}
/// Provides function to decompress data, which were compressed using BZip2
/// Provides function to decompress data, which were compressed using BZip2.
public final class BZip2: DecompressionAlgorithm {
/**
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 18.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 01.11.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+2 -2
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 23.10.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
@@ -28,7 +28,7 @@ public enum DeflateError: Error {
case SymbolNotFound
}
/// Provides function to decompress data, which were compressed with DEFLATE
/// Provides function to decompress data, which were compressed with DEFLATE.
public final class Deflate: DecompressionAlgorithm {
/**
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 19.09.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+3 -3
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 29.10.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
@@ -39,7 +39,7 @@ public enum GzipError: Error {
case WrongISize
}
/// A strucutre which provides information about gzip archive.
/// A structure which provides information about gzip archive.
public struct GzipHeader {
struct Flags {
@@ -176,7 +176,7 @@ public struct GzipHeader {
}
/// A class with unarchive function for gzip archives.
/// Provides unarchive function for GZip archives.
public final class GzipArchive: Archive {
/**
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 24.10.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 15.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 22.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 23.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+2 -3
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 23.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
@@ -32,7 +32,6 @@ final class LZMADecoder {
private var lp: UInt8
private var pb: UInt8
private var dictionarySize: Int
// private var uncompressedSize: Int
private var outWindow: LZMAOutWindow
private var rangeDecoder: LZMARangeDecoder
@@ -67,7 +66,7 @@ final class LZMADecoder {
private var rep2: Int = 0
private var rep3: Int = 0
/// Is used to select exact variable from 'IsRep', 'IsRepG0', 'IsRepG1æ and 'IsRepG2' arrays.
/// Is used to select exact variable from 'IsRep', 'IsRepG0', 'IsRepG1' and 'IsRepG2' arrays.
private var state: Int = 0
init(_ pointerData: inout DataWithPointer, _ lc: UInt8, _ pb: UInt8, _ lp: UInt8,
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 23.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 23.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 23.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 29.10.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+1 -1
View File
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
+1 -1
View File
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
+1 -1
View File
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
+2 -2
View File
@@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2016 Timofey Solomko. All rights reserved.</string>
<string>Copyright © 2017 Timofey Solomko. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 16.10.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
//! Project version number for SWCompression.
+4 -4
View File
@@ -3,14 +3,14 @@
// SWCompression
//
// Created by Timofey Solomko on 18.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
/**
Error happened during unarchiving xz archive.
It may indicate that either the data is damaged or it might not be xz archive at all.
Error happened during unarchiving XZ archive.
It may indicate that either the data is damaged or it might not be XZ archive at all.
- `WrongMagic`: 'magic' bytes in archive's header or footer weren't equal to predefined value.
- `WrongArchiveInfo`: incorrect value of one of archive's special field (in block, index, header or footer).
@@ -54,7 +54,7 @@ public enum XZError: Error {
case MultiByteIntegerError
}
/// A class with unarchive function for xz archives.
/// Provides unarchive function for XZ archives.
public final class XZArchive: Archive {
/**
+418
View File
@@ -0,0 +1,418 @@
//
// ZipContainer.swift
// SWCompression
//
// Created by Timofey Solomko on 14.01.17.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
/**
Error happened during processing ZIP archive (container).
It may indicate that either the data is damaged or it might not be ZIP archive (container) at all.
- `NotFoundCentralDirectoryEnd`: end of Central Directoty record wasn't found.
- `WrongSignature`: unsupported signature of one of ZIP container's structures.
- `WrongSize`: incorrect compressed or uncompressed size of a ZIP container's entry's data.
- `WrongVersion`: unsupported number of version needed to extract ZIP container
(unsupported features are required to open this file).
- `MultiVolumesNotSupported`: unsupported feature: multi-volumed or spanned container.
- `EncryptionNotSupported`: unsupported feature: encryption.
- `PatchingNotSupported`: unsupported feature: patched data.
- `CompressionNotSupported`: unsupported feature: specified compression method.
- `WrongLocalHeader`: local header of an entry wasn't consistent with Central Directory record.
- `WrongCRC32`: computed checksum of entry's data wasn't the same as the one stored in container.
*/
public enum ZipError: Error {
/// End of Central Directoty record was not found.
case NotFoundCentralDirectoryEnd
/// Wrong signature of one of ZIP container's structures.
case WrongSignature
/// Wrong either compressed or uncompressed size of a ZIP container's entry.
case WrongSize
/// Wrong number of version needed to extract ZIP container.
case WrongVersion
/// Archive either spanned or consists of several volumes. This feature is not supported.
case MultiVolumesNotSupported
/// Entry or record is encrypted. This feature is not supported.
case EncryptionNotSupported
/// Entry contains patched data. This feature is not supported.
case PatchingNotSupported
/// Wrong compression method of an entry.
case CompressionNotSupported
/// Wrong local header of an entry.
case WrongLocalHeader
/// Wrong computed CRC32 of an entry.
case WrongCRC32
}
/// Provides function to open ZIP archives (containers).
public class ZipContainer {
/**
Processes ZIP archive (container) and returns an array of tuples `(String, Data)`.
First member of a tuple is entry's name, second member is entry's data.
- Important: The order of entries is defined by ZIP archive and, particularly, creator of given ZIP container.
It is likely that directories will be encountered earlier than files stored in those directories,
but one SHOULD NOT assume that this is the case.
- Note: Currently, there is no universal (platform and file system independent) method to determine if entry is a directory.
One can check this by looking at the size of entry's data (it should be 0 for directory) AND
the last character of entry's name (it should be '/'). If all of these is true then entry is likely to be a directory.
- Note: Only ZIP containers complying to ISO/IEC 21320-1 standard are supported.
- Parameter containerData: Data of ZIP container.
- Throws: `ZipError` or `DeflateError` depending on the type of inconsistency in data.
It may indicate that either the container is damaged or it might not be ZIP container or compressed with Deflate at all.
- Returns: Array of pairs (tuples) where first member is `entryName` and second member is `entryData`.
*/
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)
// Looking for the end of central directory (CD) record.
var zip64RecordExists = false
pointerData.index = pointerData.size - 22 // 22 is a minimum amount which could take end of CD record.
while true {
// Check signature.
if pointerData.uint64FromAlignedBytes(count: 4) == 0x06054b50 {
// We found it!
break
}
if pointerData.index == 0 {
throw ZipError.NotFoundCentralDirectoryEnd
}
pointerData.index -= 5
}
/// Number of current disk.
var currentDiskNumber = pointerData.uint64FromAlignedBytes(count: 2)
/// Number of the disk with the start of CD.
var cdDiskNumber = pointerData.uint64FromAlignedBytes(count: 2)
if currentDiskNumber == 0xFFFF || cdDiskNumber == 0xFFFF {
zip64RecordExists = true
}
guard currentDiskNumber == cdDiskNumber
else { throw ZipError.MultiVolumesNotSupported }
/// Number of CD entries on the current disk.
var cdEntriesCurrentDisk = pointerData.uint64FromAlignedBytes(count: 2)
/// Total number of CD entries.
var cdEntries = pointerData.uint64FromAlignedBytes(count: 2)
if cdEntriesCurrentDisk == 0xFFFF || cdEntries == 0xFFFF {
zip64RecordExists = true
}
guard cdEntries == cdEntriesCurrentDisk
else { throw ZipError.MultiVolumesNotSupported }
/// Size of Central Directory.
var cdSize = pointerData.uint64FromAlignedBytes(count: 4)
/// Offset to the start of Central Directory.
var cdOffset = pointerData.uint64FromAlignedBytes(count: 4)
let zipCommentLength = pointerData.intFromAlignedBytes(count: 2)
if cdSize == 0xFFFFFFFF || cdOffset == 0xFFFFFFFF {
zip64RecordExists = true
}
// There is also a .ZIP file comment, but we don't need it.
// Here's how it can be processed:
// let zipComment = String(data: Data(bytes: pointerData.alignedBytes(count: zipCommentLength)),
// encoding: .utf8)
if zip64RecordExists { // We need to find Zip64 end of CD locator.
// Back to start of end of CD record.
pointerData.index -= zipCommentLength + 22
// Zip64 locator takes exactly 20 bytes.
pointerData.index -= 20
// Check signature.
guard pointerData.uint64FromAlignedBytes(count: 4) == 0x07064b50
else { throw ZipError.WrongSignature }
let zip64CDStartDisk = pointerData.uint64FromAlignedBytes(count: 4)
guard currentDiskNumber == zip64CDStartDisk
else { throw ZipError.MultiVolumesNotSupported }
let zip64CDEndOffset = pointerData.uint64FromAlignedBytes(count: 8)
let totalDisks = pointerData.uint64FromAlignedBytes(count: 1)
guard totalDisks == 1
else { throw ZipError.MultiVolumesNotSupported }
// Now we need to move to Zip64 End of CD.
pointerData.index = Int(UInt(truncatingBitPattern: zip64CDEndOffset))
// Check signature.
guard pointerData.uint64FromAlignedBytes(count: 4) == 0x06064b50
else { throw ZipError.WrongSignature }
// Following 8 bytes are size of end of zip64 CD, but we don't need it.
_ = pointerData.uint64FromAlignedBytes(count: 8)
// Next two bytes are version of compressor, but we don't need it.
_ = pointerData.uint64FromAlignedBytes(count: 2)
let versionNeeded = pointerData.uint64FromAlignedBytes(count: 2)
guard versionNeeded <= 45
else { throw ZipError.WrongVersion }
// Update values read from basic End of CD to the one from Zip64 End of CD.
currentDiskNumber = pointerData.uint64FromAlignedBytes(count: 4)
cdDiskNumber = pointerData.uint64FromAlignedBytes(count: 4)
guard currentDiskNumber == cdDiskNumber
else { throw ZipError.MultiVolumesNotSupported }
cdEntriesCurrentDisk = pointerData.uint64FromAlignedBytes(count: 8)
cdEntries = pointerData.uint64FromAlignedBytes(count: 8)
guard cdEntries == cdEntriesCurrentDisk
else { throw ZipError.MultiVolumesNotSupported }
cdSize = pointerData.uint64FromAlignedBytes(count: 8)
cdOffset = pointerData.uint64FromAlignedBytes(count: 8)
// Then, there might be 'zip64 extensible data sector' with 'special purpose data'.
// But we don't need them currently, so let's skip them.
// To find the size of these data:
// let specialPurposeDataSize = zip64EndCDSize - 56
}
// OK, now we are ready to read Central Directory itself.
pointerData.index = Int(UInt(truncatingBitPattern: cdOffset))
var result: [(entryName: String, entryData: Data)] = []
for _ in 0..<cdEntries {
// Check signature.
guard pointerData.uint64FromAlignedBytes(count: 4) == 0x02014b50
else { throw ZipError.WrongSignature }
let cdEntry = CentralDirectoryEntry(&pointerData)
// Let's check entry's values for consistency.
guard cdEntry.versionNeeded <= 45
else { throw ZipError.WrongVersion }
guard cdEntry.diskNumberStart == currentDiskNumber
else { throw ZipError.MultiVolumesNotSupported }
guard cdEntry.generalPurposeBitFlags & 0x2000 == 0 ||
cdEntry.generalPurposeBitFlags & 0x40 == 0 ||
cdEntry.generalPurposeBitFlags & 0x01 == 0
else { throw ZipError.EncryptionNotSupported }
guard cdEntry.generalPurposeBitFlags & 0x20 == 0
else { throw ZipError.PatchingNotSupported }
guard cdEntry.compressionMethod == 8 || cdEntry.compressionMethod == 0
else { throw ZipError.CompressionNotSupported }
let currentCDOffset = pointerData.index
// Now, let's move to the location of local header.
pointerData.index = Int(UInt32(truncatingBitPattern: cdEntry.offset))
// Check signature.
guard pointerData.uint64FromAlignedBytes(count: 4) == 0x04034b50
else { throw ZipError.WrongSignature }
let localHeader = LocalHeader(&pointerData)
// Check local header for consistency.
guard localHeader.versionNeeded <= 45 &&
localHeader.generalPurposeBitFlags == cdEntry.generalPurposeBitFlags &&
localHeader.compressionMethod == cdEntry.compressionMethod &&
localHeader.lastModFileTime == cdEntry.lastModFileTime &&
localHeader.lastModFileDate == cdEntry.lastModFileDate
else { throw ZipError.WrongLocalHeader }
let hasDataDescriptor = localHeader.generalPurposeBitFlags & 0x08 != 0
// If file has data descriptor, then some values in local header are absent.
// So we need to use values from CD entry.
var uncompSize = hasDataDescriptor ?
Int(UInt32(truncatingBitPattern: cdEntry.uncompSize)) :
Int(UInt32(truncatingBitPattern: localHeader.uncompSize))
var compSize = hasDataDescriptor ?
Int(UInt32(truncatingBitPattern: cdEntry.compSize)) :
Int(UInt32(truncatingBitPattern: localHeader.compSize))
var crc32 = hasDataDescriptor ? cdEntry.crc32 : localHeader.crc32
let fileBytes: [UInt8]
let fileDataStart = pointerData.index
switch localHeader.compressionMethod {
case 0:
fileBytes = pointerData.alignedBytes(count: uncompSize)
case 8:
fileBytes = try Deflate.decompress(&pointerData)
// Sometimes pointerData stays in not-aligned state after deflate decompression.
// Following line ensures that this is not the case.
pointerData.skipUntilNextByte()
default:
throw ZipError.CompressionNotSupported
}
let realCompSize = pointerData.index - fileDataStart
if hasDataDescriptor {
// Now we need to parse data descriptor itself.
// First, it might or might not have signature.
let ddSignature = pointerData.uint64FromAlignedBytes(count: 4)
if ddSignature != 0x08074b50 {
pointerData.index -= 4
}
// Now, let's update from CD with values from data descriptor.
crc32 = UInt32(truncatingBitPattern: pointerData.uint64FromAlignedBytes(count: 4))
compSize = Int(UInt32(truncatingBitPattern: pointerData.uint64FromAlignedBytes(count: 4)))
uncompSize = Int(UInt32(truncatingBitPattern: pointerData.uint64FromAlignedBytes(count: 4)))
}
guard compSize == realCompSize && uncompSize == fileBytes.count
else { throw ZipError.WrongSize }
guard crc32 == UInt32(CheckSums.crc32(fileBytes))
else { throw ZipError.WrongCRC32 }
result.append((localHeader.fileName!, Data(bytes: fileBytes)))
pointerData.index = currentCDOffset
}
return result
}
}
struct LocalHeader {
let versionNeeded: Int
let generalPurposeBitFlags: Int
let compressionMethod: Int
let lastModFileTime: Int
let lastModFileDate: Int
let crc32: UInt32
private(set) var compSize: UInt64
private(set) var uncompSize: UInt64
let fileName: String?
init(_ pointerData: inout DataWithPointer) {
self.versionNeeded = pointerData.intFromAlignedBytes(count: 2)
self.generalPurposeBitFlags = pointerData.intFromAlignedBytes(count: 2)
self.compressionMethod = pointerData.intFromAlignedBytes(count: 2)
self.lastModFileTime = pointerData.intFromAlignedBytes(count: 2)
self.lastModFileDate = pointerData.intFromAlignedBytes(count: 2)
self.crc32 = UInt32(truncatingBitPattern: pointerData.uint64FromAlignedBytes(count: 4))
self.compSize = pointerData.uint64FromAlignedBytes(count: 4)
self.uncompSize = pointerData.uint64FromAlignedBytes(count: 4)
let fileNameLength = pointerData.intFromAlignedBytes(count: 2)
let extraFieldLength = pointerData.intFromAlignedBytes(count: 2)
self.fileName = String(data: Data(bytes: pointerData.alignedBytes(count: fileNameLength)),
encoding: .utf8)
let extraFieldStart = pointerData.index
while pointerData.index - extraFieldStart < extraFieldLength {
// There are a lot of possible extra fields.
// But we are (currently) only interested in Zip64 related fields (with headerID = 0x0001),
// because they directly impact further extraction process.
let headerID = pointerData.intFromAlignedBytes(count: 2)
let size = pointerData.intFromAlignedBytes(count: 2)
switch headerID {
case 0x0001:
// In local header both uncompressed size and compressed size fields are required.
self.uncompSize = pointerData.uint64FromAlignedBytes(count: 8)
self.compSize = pointerData.uint64FromAlignedBytes(count: 8)
default:
pointerData.index += size
}
}
}
}
struct CentralDirectoryEntry {
let versionMadeBy: Int
let versionNeeded: Int
let generalPurposeBitFlags: Int
let compressionMethod: Int
let lastModFileTime: Int
let lastModFileDate: Int
let crc32: UInt32
private(set) var compSize: UInt64
private(set) var uncompSize: UInt64
let fileName: String?
let fileComment: String?
private(set) var diskNumberStart: UInt64
let internalFileAttributes: Int
let externalFileAttributes: UInt32
private(set) var offset: UInt64
init(_ pointerData: inout DataWithPointer) {
self.versionMadeBy = pointerData.intFromAlignedBytes(count: 2)
self.versionNeeded = pointerData.intFromAlignedBytes(count: 2)
self.generalPurposeBitFlags = pointerData.intFromAlignedBytes(count: 2)
self.compressionMethod = pointerData.intFromAlignedBytes(count: 2)
self.lastModFileTime = pointerData.intFromAlignedBytes(count: 2)
self.lastModFileDate = pointerData.intFromAlignedBytes(count: 2)
self.crc32 = UInt32(truncatingBitPattern: pointerData.uint64FromAlignedBytes(count: 4))
self.compSize = pointerData.uint64FromAlignedBytes(count: 4)
self.uncompSize = pointerData.uint64FromAlignedBytes(count: 4)
let fileNameLength = pointerData.intFromAlignedBytes(count: 2)
let extraFieldLength = pointerData.intFromAlignedBytes(count: 2)
let fileCommentLength = pointerData.intFromAlignedBytes(count: 2)
self.diskNumberStart = pointerData.uint64FromAlignedBytes(count: 2)
self.internalFileAttributes = pointerData.intFromAlignedBytes(count: 2)
self.externalFileAttributes = UInt32(truncatingBitPattern: pointerData.uint64FromAlignedBytes(count: 4))
self.offset = pointerData.uint64FromAlignedBytes(count: 4)
self.fileName = String(data: Data(bytes: pointerData.alignedBytes(count: fileNameLength)),
encoding: .utf8)
let extraFieldStart = pointerData.index
while pointerData.index - extraFieldStart < extraFieldLength {
// There are a lot of possible extra fields.
// But we are (currently) only interested in Zip64 related fields (with headerID = 0x0001),
// because they directly impact further extraction process.
let headerID = pointerData.intFromAlignedBytes(count: 2)
let size = pointerData.intFromAlignedBytes(count: 2)
switch headerID {
case 0x0001:
if self.uncompSize == 0xFFFFFFFF {
self.uncompSize = pointerData.uint64FromAlignedBytes(count: 8)
}
if self.compSize == 0xFFFFFFFF {
self.compSize = pointerData.uint64FromAlignedBytes(count: 8)
}
if self.offset == 0xFFFFFFFF {
self.offset = pointerData.uint64FromAlignedBytes(count: 8)
}
if self.diskNumberStart == 0xFFFF {
self.diskNumberStart = pointerData.uint64FromAlignedBytes(count: 4)
}
default:
pointerData.index += size
}
}
self.fileComment = String(data: Data(bytes: pointerData.alignedBytes(count: fileCommentLength)),
encoding: .utf8)
}
}
+3 -3
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 30.10.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
@@ -35,7 +35,7 @@ public enum ZlibError: Error {
case WrongAdler32(Data)
}
/// A strucutre which provides information about zlib archive.
/// A structure which provides information about zlib archive.
public struct ZlibHeader {
/// Supported compression methods in zlib archive.
@@ -121,7 +121,7 @@ public struct ZlibHeader {
}
/// A class with unarchive function for Zlib archives.
/// Provides unarchive function for Zlib archives.
public final class ZlibArchive: Archive {
/**
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 14.11.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import XCTest
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 19.08.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import Foundation
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 21.11.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import XCTest
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 14.11.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import XCTest
+2 -2
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 15.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import XCTest
@@ -45,7 +45,7 @@ class LzmaTests: XCTestCase {
self.perform(test: "test10")
}
func testLzm11() {
func testLzma11() {
self.perform(test: "test11")
}
+20
View File
@@ -0,0 +1,20 @@
bz2.test1 average: 0.002
bz2.test2 average: 0.390
bz2.test3 average: 0.167
bz2.test4 average: 0.159
bz2.test5 average: 0.000
bz2.test6 average: 8.296
deflate.test1 average: 0.002
deflate.test2 average: 0.004
deflate.test3 average: 0.003
deflate.test4 average: 0.002
deflate.test5 average: 0.002
deflate.test6 average: 0.317
deflate.test7 average: 0.478
xz.test1 average: 0.015
xz.test2 average: 0.021
xz.test3 average: 0.021
xz.test4 average: 0.015
xz.test5 average: 0.000
xz.test6 average: 0.651
xz.test7 average: 0.961
+20
View File
@@ -0,0 +1,20 @@
bz2.test1 average: 0.000
bz2.test2 average: 0.004
bz2.test3 average: 0.002
bz2.test4 average: 0.001
bz2.test5 average: 0.000
bz2.test6 average: 0.061
deflate.test1 average: 0.001
deflate.test2 average: 0.001
deflate.test3 average: 0.001
deflate.test4 average: 0.001
deflate.test5 average: 0.001
deflate.test6 average: 0.025
deflate.test7 average: 0.044
xz.test1 average: 0.003
xz.test2 average: 0.005
xz.test3 average: 0.005
xz.test4 average: 0.003
xz.test5 average: 0.000
xz.test6 average: 0.081
xz.test7 average: 0.159
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a444322036e93848c90fbd44823674b264b18921e6c25e8ea169ec23936f9cc
size 381480
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3763170cb942ccc8a26fac7ca30571a85ab29f343445cf23352d30acd2c69caa
size 3209086
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cf8d32172aa2e8ae09b8ce4f3fe190d9397f04e2f1c3b2d3c4ae6b019f769585
size 3209192
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 18.12.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import XCTest
+72
View File
@@ -0,0 +1,72 @@
//
// ZipTests.swift
// SWCompression
//
// Created by Timofey Solomko on 14.01.17.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import XCTest
import SWCompression
class ZipTests: XCTestCase {
static let testType: String = "zip"
func test() {
guard let testData = try? Data(contentsOf: Constants.url(forTest: "SWCompressionSourceCode", withType: ZipTests.testType),
options: .mappedIfSafe) else {
XCTFail("Failed to load test archive")
return
}
guard let zipDict = try? ZipContainer.open(containerData: testData) else {
XCTFail("Unable to open ZIP archive.")
return
}
guard zipDict.count == 211 else {
XCTFail("Incorrect number of entries.")
return
}
}
func testZip64() {
guard let testData = try? Data(contentsOf: Constants.url(forTest: "TestZip64", withType: ZipTests.testType),
options: .mappedIfSafe) else {
XCTFail("Failed to load test archive")
return
}
guard let zipDict = try? ZipContainer.open(containerData: testData) else {
XCTFail("Unable to open ZIP archive.")
return
}
guard zipDict.count == 6 else {
XCTFail("Incorrect number of entries.")
return
}
}
func testDataDescriptor() {
guard let testData = try? Data(contentsOf: Constants.url(forTest: "TestDataDescriptor", withType: ZipTests.testType),
options: .mappedIfSafe) else {
XCTFail("Failed to load test archive")
return
}
guard let zipDict = try? ZipContainer.open(containerData: testData) else {
XCTFail("Unable to open ZIP archive.")
return
}
// This archive has a lot of macOS service files inside.
guard zipDict.count == 6 else {
XCTFail("Incorrect number of entries.")
return
}
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
// SWCompression
//
// Created by Timofey Solomko on 14.11.16.
// Copyright © 2016 Timofey Solomko. All rights reserved.
// Copyright © 2017 Timofey Solomko. All rights reserved.
//
import XCTest
+54 -13
View File
@@ -61,6 +61,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -87,6 +90,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZlibError.html">ZlibError</a>
</li>
@@ -168,7 +174,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L38-L106">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L38-L106">Show on GitHub</a>
</div>
</section>
</div>
@@ -190,7 +196,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A class with unarchive function for gzip archives.</p>
<p>Provides unarchive function for GZip archives.</p>
<a href="Classes/GzipArchive.html" class="slightly-smaller">See more</a>
</div>
@@ -203,7 +209,42 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L180-L221">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L180-L221">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:C13SWCompression12ZipContainer"></a>
<a name="//apple_ref/swift/Class/ZipContainer" class="dashAnchor"></a>
<a class="token" href="#/s:C13SWCompression12ZipContainer">ZipContainer</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Provides function to open ZIP archives (containers).</p>
<a href="Classes/ZipContainer.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ZipContainer</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L51-L279">Show on GitHub</a>
</div>
</section>
</div>
@@ -238,7 +279,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L44-L67">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L44-L90">Show on GitHub</a>
</div>
</section>
</div>
@@ -260,7 +301,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A class with unarchive function for Zlib archives.</p>
<p>Provides unarchive function for Zlib archives.</p>
<a href="Classes/ZlibArchive.html" class="slightly-smaller">See more</a>
</div>
@@ -273,7 +314,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L125-L157">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L125-L157">Show on GitHub</a>
</div>
</section>
</div>
@@ -295,7 +336,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Provides function to decompress data, which were compressed with DEFLATE</p>
<p>Provides function to decompress data, which were compressed with DEFLATE.</p>
<a href="Classes/Deflate.html" class="slightly-smaller">See more</a>
</div>
@@ -308,7 +349,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L32-L230">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L32-L230">Show on GitHub</a>
</div>
</section>
</div>
@@ -330,7 +371,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Provides function to decompress data, which were compressed using BZip2</p>
<p>Provides function to decompress data, which were compressed using BZip2.</p>
<a href="Classes/BZip2.html" class="slightly-smaller">See more</a>
</div>
@@ -343,7 +384,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L47-L277">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L47-L277">Show on GitHub</a>
</div>
</section>
</div>
@@ -365,7 +406,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A class with unarchive function for xz archives.</p>
<p>Provides unarchive function for XZ archives.</p>
<a href="Classes/XZArchive.html" class="slightly-smaller">See more</a>
</div>
@@ -378,7 +419,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L58-L346">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L58-L346">Show on GitHub</a>
</div>
</section>
</div>
@@ -391,7 +432,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+9 -3
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>Provides function to decompress data, which were compressed using BZip2</p>
<p>Provides function to decompress data, which were compressed using BZip2.</p>
</div>
</section>
@@ -220,7 +226,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L61-L97">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L61-L97">Show on GitHub</a>
</div>
</section>
</div>
@@ -233,7 +239,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+9 -3
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>Provides function to decompress data, which were compressed with DEFLATE</p>
<p>Provides function to decompress data, which were compressed with DEFLATE.</p>
</div>
</section>
@@ -220,7 +226,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L46-L50">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L46-L50">Show on GitHub</a>
</div>
</section>
</div>
@@ -233,7 +239,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+9 -3
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A class with unarchive function for gzip archives.</p>
<p>Provides unarchive function for GZip archives.</p>
</div>
</section>
@@ -228,7 +234,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L198-L219">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L198-L219">Show on GitHub</a>
</div>
</section>
</div>
@@ -241,7 +247,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+8 -2
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -220,7 +226,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L58-L65">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L58-L63">Show on GitHub</a>
</div>
</section>
</div>
@@ -233,7 +239,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+8 -2
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -220,7 +226,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L69-L76">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L52-L59">Show on GitHub</a>
</div>
</section>
</div>
@@ -233,7 +239,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+9 -3
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A class with unarchive function for xz archives.</p>
<p>Provides unarchive function for XZ archives.</p>
</div>
</section>
@@ -224,7 +230,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L76-L143">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L76-L143">Show on GitHub</a>
</div>
</section>
</div>
@@ -237,7 +243,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+268
View File
@@ -0,0 +1,268 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>ZipContainer Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset="utf-8">
<script src="../js/jquery.min.js" defer></script>
<script src="../js/jazzy.js" defer></script>
</head>
<body>
<a name="//apple_ref/swift/Class/ZipContainer" class="dashAnchor"></a>
<a title="ZipContainer Class Reference"></a>
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="../index.html">
SWCompression Docs
</a>
(100% documented)
</p>
<p class="header-col header-col--secondary">
<a class="header-link" href="https://github.com/tsolomko/SWCompression">
<img class="header-icon" src="../img/gh.png"/>
View on GitHub
</a>
</p>
</header>
<p class="breadcrumbs">
<a class="breadcrumb" href="../index.html">SWCompression Reference</a>
<img class="carat" src="../img/carat.png" />
ZipContainer Class Reference
</p>
<div class="content-wrapper">
<nav class="navigation">
<ul class="nav-groups">
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Classes.html">Classes</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/BZip2.html">BZip2</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/Deflate.html">Deflate</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/GzipArchive.html">GzipArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/LZMA.html">LZMA</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/LZMA2.html">LZMA2</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Enums.html">Enums</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/BZip2Error.html">BZip2Error</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/DeflateError.html">DeflateError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/GzipError.html">GzipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/LZMA2Error.html">LZMA2Error</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/LZMAError.html">LZMAError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Protocols.html">Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Protocols/Archive.html">Archive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Protocols/DecompressionAlgorithm.html">DecompressionAlgorithm</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Structs.html">Structs</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader.html">GzipHeader</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader/CompressionMethod.html"> CompressionMethod</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader/FileSystemType.html"> FileSystemType</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader.html">ZlibHeader</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader/CompressionMethod.html"> CompressionMethod</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader/CompressionLevel.html"> CompressionLevel</a>
</li>
</ul>
</li>
</ul>
</nav>
<article class="main-content">
<section class="section">
<div class="section-content">
<h1>ZipContainer</h1>
<div class="declaration">
<div class="language">
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ZipContainer</span></code></pre>
</div>
</div>
<p>Provides function to open ZIP archives (containers).</p>
</div>
</section>
<section class="section">
<div class="section-content">
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:ZFC13SWCompression12ZipContainer4openFzT13containerDataV10Foundation4Data_GSaT9entryNameSS9entryDataS2___"></a>
<a name="//apple_ref/swift/Method/open(containerData:)" class="dashAnchor"></a>
<a class="token" href="#/s:ZFC13SWCompression12ZipContainer4openFzT13containerDataV10Foundation4Data_GSaT9entryNameSS9entryDataS2___">open(containerData:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Processes ZIP archive (container) and returns an array of tuples <code>(String, Data)</code>.
First member of a tuple is entry&rsquo;s name, second member is entry&rsquo;s data.</p>
<div class="aside aside-important">
<p class="aside-title">Important</p>
<p>The order of entries is defined by ZIP archive and, particularly, creator of given ZIP container.
It is likely that directories will be encountered earlier than files stored in those directories,
but one SHOULD NOT assume that this is the case.</p>
</div>
<div class="aside aside-note">
<p class="aside-title">Note</p>
<p>Currently, there is no universal (platform and file system independent) method to determine if entry is a directory.
One can check this by looking at the size of entry&rsquo;s data (it should be 0 for directory) AND
the last character of entry&rsquo;s name (it should be &lsquo;/&rsquo;). If all of these is true then entry is likely to be a directory.</p>
</div>
<div class="aside aside-note">
<p class="aside-title">Note</p>
<p>Only ZIP containers complying to ISO/IEC 21320-1 standard are supported.</p>
</div>
<div class="aside aside-parameter">
<p class="aside-title">Parameter</p>
<p>Parameter containerData: Data of ZIP container.</p>
</div>
<div class="aside aside-throws">
<p class="aside-title">Throws</p>
<p><code><a href="../Enums/ZipError.html">ZipError</a></code> or <code><a href="../Enums/DeflateError.html">DeflateError</a></code> depending on the type of inconsistency in data.
It may indicate that either the container is damaged or it might not be ZIP container or compressed with Deflate at all.</p>
</div>
<div class="aside aside-returns">
<p class="aside-title">Returns</p>
<p>Array of pairs (tuples) where first member is <code>entryName</code> and second member is <code>entryData</code>.</p>
</div>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">open</span><span class="p">(</span><span class="n">containerData</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">Data</span><span class="p">)</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="p">[(</span><span class="nv">entryName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">entryData</span><span class="p">:</span> <span class="kt">Data</span><span class="p">)]</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>containerData</em>
</code>
</td>
<td>
<div>
<p>Data of ZIP container.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>Array of pairs (tuples) where first member is <code>entryName</code> and second member is <code>entryData</code>.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L74-L277">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
</div>
</section>
</article>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
</html>
+9 -3
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A class with unarchive function for Zlib archives.</p>
<p>Provides unarchive function for Zlib archives.</p>
</div>
</section>
@@ -228,7 +234,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L143-L155">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L143-L155">Show on GitHub</a>
</div>
</section>
</div>
@@ -241,7 +247,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+66 -10
View File
@@ -61,6 +61,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -87,6 +90,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZlibError.html">ZlibError</a>
</li>
@@ -177,7 +183,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L21-L35">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L21-L35">Show on GitHub</a>
</div>
</section>
</div>
@@ -224,7 +230,57 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L24-L40">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L24-L40">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:O13SWCompression8ZipError"></a>
<a name="//apple_ref/swift/Enum/ZipError" class="dashAnchor"></a>
<a class="token" href="#/s:O13SWCompression8ZipError">ZipError</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Error happened during processing ZIP archive (container).
It may indicate that either the data is damaged or it might not be ZIP archive (container) at all.</p>
<ul>
<li><code>NotFoundCentralDirectoryEnd</code>: end of Central Directoty record wasn&rsquo;t found.</li>
<li><code>WrongSignature</code>: unsupported signature of one of ZIP container&rsquo;s structures.</li>
<li><code>WrongSize</code>: incorrect compressed or uncompressed size of a ZIP container&rsquo;s entry&rsquo;s data.</li>
<li><code>WrongVersion</code>: unsupported number of version needed to extract ZIP container
(unsupported features are required to open this file).</li>
<li><code>MultiVolumesNotSupported</code>: unsupported feature: multi-volumed or spanned container.</li>
<li><code>EncryptionNotSupported</code>: unsupported feature: encryption.</li>
<li><code>PatchingNotSupported</code>: unsupported feature: patched data.</li>
<li><code>CompressionNotSupported</code>: unsupported feature: specified compression method.</li>
<li><code>WrongLocalHeader</code>: local header of an entry wasn&rsquo;t consistent with Central Directory record.</li>
<li><code>WrongCRC32</code>: computed checksum of entry&rsquo;s data wasn&rsquo;t the same as the one stored in container.</li>
</ul>
<a href="Enums/ZipError.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ZipError</span><span class="p">:</span> <span class="kt">Error</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L27-L48">Show on GitHub</a>
</div>
</section>
</div>
@@ -273,7 +329,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L26-L41">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L26-L41">Show on GitHub</a>
</div>
</section>
</div>
@@ -318,7 +374,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L22-L36">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L22-L36">Show on GitHub</a>
</div>
</section>
</div>
@@ -361,7 +417,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L20-L29">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L20-L29">Show on GitHub</a>
</div>
</section>
</div>
@@ -409,7 +465,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L25-L44">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L25-L44">Show on GitHub</a>
</div>
</section>
</div>
@@ -431,8 +487,8 @@ It may indicate that either the data is damaged or it might not be compressed wi
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Error happened during unarchiving xz archive.
It may indicate that either the data is damaged or it might not be xz archive at all.</p>
<p>Error happened during unarchiving XZ archive.
It may indicate that either the data is damaged or it might not be XZ archive at all.</p>
<ul>
<li><code>WrongMagic</code>: &lsquo;magic&rsquo; bytes in archive&rsquo;s header or footer weren&rsquo;t equal to predefined value.</li>
@@ -460,7 +516,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L28-L55">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L28-L55">Show on GitHub</a>
</div>
</section>
</div>
@@ -473,7 +529,7 @@ Associated value contains already decompressed data.</li>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+16 -10
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -187,7 +193,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L27">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L27">Show on GitHub</a>
</div>
</section>
</div>
@@ -221,7 +227,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L29">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L29">Show on GitHub</a>
</div>
</section>
</div>
@@ -255,7 +261,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L31">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L31">Show on GitHub</a>
</div>
</section>
</div>
@@ -289,7 +295,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L33">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L33">Show on GitHub</a>
</div>
</section>
</div>
@@ -323,7 +329,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L35">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L35">Show on GitHub</a>
</div>
</section>
</div>
@@ -357,7 +363,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L37">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L37">Show on GitHub</a>
</div>
</section>
</div>
@@ -391,7 +397,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L39">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L39">Show on GitHub</a>
</div>
</section>
</div>
@@ -425,7 +431,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L41">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L41">Show on GitHub</a>
</div>
</section>
</div>
@@ -459,7 +465,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L43">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L43">Show on GitHub</a>
</div>
</section>
</div>
@@ -472,7 +478,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+11 -5
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -182,7 +188,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L22">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L22">Show on GitHub</a>
</div>
</section>
</div>
@@ -216,7 +222,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L24">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L24">Show on GitHub</a>
</div>
</section>
</div>
@@ -250,7 +256,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L26">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L26">Show on GitHub</a>
</div>
</section>
</div>
@@ -284,7 +290,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L28">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L28">Show on GitHub</a>
</div>
</section>
</div>
@@ -297,7 +303,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+13 -7
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -186,7 +192,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L26">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L26">Show on GitHub</a>
</div>
</section>
</div>
@@ -220,7 +226,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L28">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L28">Show on GitHub</a>
</div>
</section>
</div>
@@ -254,7 +260,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L30">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L30">Show on GitHub</a>
</div>
</section>
</div>
@@ -288,7 +294,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L32">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L32">Show on GitHub</a>
</div>
</section>
</div>
@@ -323,7 +329,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L37">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L37">Show on GitHub</a>
</div>
</section>
</div>
@@ -357,7 +363,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L39">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L39">Show on GitHub</a>
</div>
</section>
</div>
@@ -370,7 +376,7 @@ Associated value contains already decompressed data.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+12 -6
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -183,7 +189,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L23">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L23">Show on GitHub</a>
</div>
</section>
</div>
@@ -217,7 +223,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L25">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L25">Show on GitHub</a>
</div>
</section>
</div>
@@ -251,7 +257,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L27">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L27">Show on GitHub</a>
</div>
</section>
</div>
@@ -285,7 +291,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L29">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L29">Show on GitHub</a>
</div>
</section>
</div>
@@ -320,7 +326,7 @@ amount of compressed data read was different from the one stored in LZMA2 packet
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L34">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L34">Show on GitHub</a>
</div>
</section>
</div>
@@ -333,7 +339,7 @@ amount of compressed data read was different from the one stored in LZMA2 packet
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+14 -8
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -188,7 +194,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L28">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L28">Show on GitHub</a>
</div>
</section>
</div>
@@ -222,7 +228,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L30">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L30">Show on GitHub</a>
</div>
</section>
</div>
@@ -256,7 +262,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L32">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L32">Show on GitHub</a>
</div>
</section>
</div>
@@ -290,7 +296,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L34">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L34">Show on GitHub</a>
</div>
</section>
</div>
@@ -324,7 +330,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L36">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L36">Show on GitHub</a>
</div>
</section>
</div>
@@ -358,7 +364,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L38">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L38">Show on GitHub</a>
</div>
</section>
</div>
@@ -392,7 +398,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L40">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L40">Show on GitHub</a>
</div>
</section>
</div>
@@ -405,7 +411,7 @@ than the repeat length.</li>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+19 -13
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,8 +146,8 @@
</div>
</div>
<p>Error happened during unarchiving xz archive.
It may indicate that either the data is damaged or it might not be xz archive at all.</p>
<p>Error happened during unarchiving XZ archive.
It may indicate that either the data is damaged or it might not be XZ archive at all.</p>
<ul>
<li><code>WrongMagic</code>: &lsquo;magic&rsquo; bytes in archive&rsquo;s header or footer weren&rsquo;t equal to predefined value.</li>
@@ -190,7 +196,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L30">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L30">Show on GitHub</a>
</div>
</section>
</div>
@@ -224,7 +230,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L32">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L32">Show on GitHub</a>
</div>
</section>
</div>
@@ -258,7 +264,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L34">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L34">Show on GitHub</a>
</div>
</section>
</div>
@@ -292,7 +298,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L36">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L36">Show on GitHub</a>
</div>
</section>
</div>
@@ -326,7 +332,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L38">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L38">Show on GitHub</a>
</div>
</section>
</div>
@@ -360,7 +366,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L40">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L40">Show on GitHub</a>
</div>
</section>
</div>
@@ -395,7 +401,7 @@ amount of compressed data read was different from the one stored in block header
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L45">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L45">Show on GitHub</a>
</div>
</section>
</div>
@@ -430,7 +436,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L50">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L50">Show on GitHub</a>
</div>
</section>
</div>
@@ -464,7 +470,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L52">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L52">Show on GitHub</a>
</div>
</section>
</div>
@@ -498,7 +504,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L54">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L54">Show on GitHub</a>
</div>
</section>
</div>
@@ -511,7 +517,7 @@ Associated value contains already decompressed data.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+522
View File
@@ -0,0 +1,522 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>ZipError Enum Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset="utf-8">
<script src="../js/jquery.min.js" defer></script>
<script src="../js/jazzy.js" defer></script>
</head>
<body>
<a name="//apple_ref/swift/Enum/ZipError" class="dashAnchor"></a>
<a title="ZipError Enum Reference"></a>
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="../index.html">
SWCompression Docs
</a>
(100% documented)
</p>
<p class="header-col header-col--secondary">
<a class="header-link" href="https://github.com/tsolomko/SWCompression">
<img class="header-icon" src="../img/gh.png"/>
View on GitHub
</a>
</p>
</header>
<p class="breadcrumbs">
<a class="breadcrumb" href="../index.html">SWCompression Reference</a>
<img class="carat" src="../img/carat.png" />
ZipError Enum Reference
</p>
<div class="content-wrapper">
<nav class="navigation">
<ul class="nav-groups">
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Classes.html">Classes</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/BZip2.html">BZip2</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/Deflate.html">Deflate</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/GzipArchive.html">GzipArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/LZMA.html">LZMA</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/LZMA2.html">LZMA2</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Enums.html">Enums</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/BZip2Error.html">BZip2Error</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/DeflateError.html">DeflateError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/GzipError.html">GzipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/LZMA2Error.html">LZMA2Error</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/LZMAError.html">LZMAError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Protocols.html">Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Protocols/Archive.html">Archive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Protocols/DecompressionAlgorithm.html">DecompressionAlgorithm</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Structs.html">Structs</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader.html">GzipHeader</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader/CompressionMethod.html"> CompressionMethod</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader/FileSystemType.html"> FileSystemType</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader.html">ZlibHeader</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader/CompressionMethod.html"> CompressionMethod</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader/CompressionLevel.html"> CompressionLevel</a>
</li>
</ul>
</li>
</ul>
</nav>
<article class="main-content">
<section class="section">
<div class="section-content">
<h1>ZipError</h1>
<div class="declaration">
<div class="language">
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ZipError</span><span class="p">:</span> <span class="kt">Error</span></code></pre>
</div>
</div>
<p>Error happened during processing ZIP archive (container).
It may indicate that either the data is damaged or it might not be ZIP archive (container) at all.</p>
<ul>
<li><code>NotFoundCentralDirectoryEnd</code>: end of Central Directoty record wasn&rsquo;t found.</li>
<li><code>WrongSignature</code>: unsupported signature of one of ZIP container&rsquo;s structures.</li>
<li><code>WrongSize</code>: incorrect compressed or uncompressed size of a ZIP container&rsquo;s entry&rsquo;s data.</li>
<li><code>WrongVersion</code>: unsupported number of version needed to extract ZIP container
(unsupported features are required to open this file).</li>
<li><code>MultiVolumesNotSupported</code>: unsupported feature: multi-volumed or spanned container.</li>
<li><code>EncryptionNotSupported</code>: unsupported feature: encryption.</li>
<li><code>PatchingNotSupported</code>: unsupported feature: patched data.</li>
<li><code>CompressionNotSupported</code>: unsupported feature: specified compression method.</li>
<li><code>WrongLocalHeader</code>: local header of an entry wasn&rsquo;t consistent with Central Directory record.</li>
<li><code>WrongCRC32</code>: computed checksum of entry&rsquo;s data wasn&rsquo;t the same as the one stored in container.</li>
</ul>
</div>
</section>
<section class="section">
<div class="section-content">
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError27NotFoundCentralDirectoryEndFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/NotFoundCentralDirectoryEnd" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError27NotFoundCentralDirectoryEndFMS0_S0_">NotFoundCentralDirectoryEnd</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>End of Central Directoty record was not found.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">NotFoundCentralDirectoryEnd</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L29">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError14WrongSignatureFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongSignature" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError14WrongSignatureFMS0_S0_">WrongSignature</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong signature of one of ZIP container&rsquo;s structures.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongSignature</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L31">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError9WrongSizeFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongSize" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError9WrongSizeFMS0_S0_">WrongSize</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong either compressed or uncompressed size of a ZIP container&rsquo;s entry.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongSize</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L33">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError12WrongVersionFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongVersion" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError12WrongVersionFMS0_S0_">WrongVersion</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong number of version needed to extract ZIP container.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongVersion</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L35">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError24MultiVolumesNotSupportedFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/MultiVolumesNotSupported" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError24MultiVolumesNotSupportedFMS0_S0_">MultiVolumesNotSupported</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Archive either spanned or consists of several volumes. This feature is not supported.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">MultiVolumesNotSupported</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L37">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError22EncryptionNotSupportedFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/EncryptionNotSupported" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError22EncryptionNotSupportedFMS0_S0_">EncryptionNotSupported</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Entry or record is encrypted. This feature is not supported.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">EncryptionNotSupported</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L39">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError20PatchingNotSupportedFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/PatchingNotSupported" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError20PatchingNotSupportedFMS0_S0_">PatchingNotSupported</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Entry contains patched data. This feature is not supported.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">PatchingNotSupported</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L41">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError23CompressionNotSupportedFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/CompressionNotSupported" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError23CompressionNotSupportedFMS0_S0_">CompressionNotSupported</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong compression method of an entry.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">CompressionNotSupported</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L43">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError16WrongLocalHeaderFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongLocalHeader" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError16WrongLocalHeaderFMS0_S0_">WrongLocalHeader</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong local header of an entry.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongLocalHeader</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L45">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError10WrongCRC32FMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongCRC32" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError10WrongCRC32FMS0_S0_">WrongCRC32</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong computed CRC32 of an entry.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongCRC32</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L47">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
</div>
</section>
</article>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
</html>
+12 -6
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -184,7 +190,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L24">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L24">Show on GitHub</a>
</div>
</section>
</div>
@@ -218,7 +224,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L26">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L26">Show on GitHub</a>
</div>
</section>
</div>
@@ -252,7 +258,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L28">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L28">Show on GitHub</a>
</div>
</section>
</div>
@@ -286,7 +292,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L30">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L30">Show on GitHub</a>
</div>
</section>
</div>
@@ -321,7 +327,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L35">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L35">Show on GitHub</a>
</div>
</section>
</div>
@@ -334,7 +340,7 @@ Associated value contains already decompressed data.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+9 -3
View File
@@ -61,6 +61,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -87,6 +90,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZlibError.html">ZlibError</a>
</li>
@@ -168,7 +174,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Protocols.swift#L12-L17">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Protocols.swift#L12-L17">Show on GitHub</a>
</div>
</section>
</div>
@@ -199,7 +205,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Protocols.swift#L20-L25">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Protocols.swift#L20-L25">Show on GitHub</a>
</div>
</section>
</div>
@@ -212,7 +218,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+8 -2
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Protocols.swift#L15">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Protocols.swift#L15">Show on GitHub</a>
</div>
</section>
</div>
@@ -187,7 +193,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+8 -2
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Protocols.swift#L23">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Protocols.swift#L23">Show on GitHub</a>
</div>
</section>
</div>
@@ -187,7 +193,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+11 -5
View File
@@ -61,6 +61,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -87,6 +90,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZlibError.html">ZlibError</a>
</li>
@@ -155,7 +161,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A strucutre which provides information about gzip archive.</p>
<p>A structure which provides information about gzip archive.</p>
<a href="Structs/GzipHeader.html" class="slightly-smaller">See more</a>
</div>
@@ -168,7 +174,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L43-L177">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L43-L177">Show on GitHub</a>
</div>
</section>
</div>
@@ -190,7 +196,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A strucutre which provides information about zlib archive.</p>
<p>A structure which provides information about zlib archive.</p>
<a href="Structs/ZlibHeader.html" class="slightly-smaller">See more</a>
</div>
@@ -203,7 +209,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L39-L122">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L39-L122">Show on GitHub</a>
</div>
</section>
</div>
@@ -216,7 +222,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+16 -10
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A strucutre which provides information about gzip archive.</p>
<p>A structure which provides information about gzip archive.</p>
</div>
</section>
@@ -175,7 +181,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L54-L57">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L54-L57">Show on GitHub</a>
</div>
</section>
</div>
@@ -206,7 +212,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L60-L71">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L60-L71">Show on GitHub</a>
</div>
</section>
</div>
@@ -236,7 +242,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L74">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L74">Show on GitHub</a>
</div>
</section>
</div>
@@ -266,7 +272,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L76">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L76">Show on GitHub</a>
</div>
</section>
</div>
@@ -296,7 +302,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L78">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L78">Show on GitHub</a>
</div>
</section>
</div>
@@ -326,7 +332,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L80">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L80">Show on GitHub</a>
</div>
</section>
</div>
@@ -356,7 +362,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L82">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L82">Show on GitHub</a>
</div>
</section>
</div>
@@ -421,7 +427,7 @@ it might not be compressed with gzip at all.</p>
</table>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L95-L98">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L95-L98">Show on GitHub</a>
</div>
</section>
</div>
@@ -434,7 +440,7 @@ it might not be compressed with gzip at all.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L56">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L56">Show on GitHub</a>
</div>
</section>
</div>
@@ -187,7 +193,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+12 -6
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L62">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L62">Show on GitHub</a>
</div>
</section>
</div>
@@ -208,7 +214,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L64">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L64">Show on GitHub</a>
</div>
</section>
</div>
@@ -242,7 +248,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L66">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L66">Show on GitHub</a>
</div>
</section>
</div>
@@ -276,7 +282,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L68">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L68">Show on GitHub</a>
</div>
</section>
</div>
@@ -310,7 +316,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L70">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L70">Show on GitHub</a>
</div>
</section>
</div>
@@ -323,7 +329,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+14 -8
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A strucutre which provides information about zlib archive.</p>
<p>A structure which provides information about zlib archive.</p>
</div>
</section>
@@ -175,7 +181,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L42-L45">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L42-L45">Show on GitHub</a>
</div>
</section>
</div>
@@ -206,7 +212,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L48-L57">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L48-L57">Show on GitHub</a>
</div>
</section>
</div>
@@ -236,7 +242,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L60">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L60">Show on GitHub</a>
</div>
</section>
</div>
@@ -266,7 +272,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L62">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L62">Show on GitHub</a>
</div>
</section>
</div>
@@ -296,7 +302,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L64">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L64">Show on GitHub</a>
</div>
</section>
</div>
@@ -361,7 +367,7 @@ it might not be compressed with zlib at all.</p>
</table>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L76-L79">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L76-L79">Show on GitHub</a>
</div>
</section>
</div>
@@ -374,7 +380,7 @@ it might not be compressed with zlib at all.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
+11 -5
View File
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L50">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L50">Show on GitHub</a>
</div>
</section>
</div>
@@ -208,7 +214,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L52">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L52">Show on GitHub</a>
</div>
</section>
</div>
@@ -242,7 +248,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L54">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L54">Show on GitHub</a>
</div>
</section>
</div>
@@ -276,7 +282,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L56">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L56">Show on GitHub</a>
</div>
</section>
</div>
@@ -289,7 +295,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L44">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L44">Show on GitHub</a>
</div>
</section>
</div>
@@ -187,7 +193,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -61,6 +61,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -87,6 +90,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZlibError.html">ZlibError</a>
</li>
@@ -168,7 +174,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L38-L106">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L38-L106">Show on GitHub</a>
</div>
</section>
</div>
@@ -190,7 +196,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A class with unarchive function for gzip archives.</p>
<p>Provides unarchive function for GZip archives.</p>
<a href="Classes/GzipArchive.html" class="slightly-smaller">See more</a>
</div>
@@ -203,7 +209,42 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L180-L221">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L180-L221">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:C13SWCompression12ZipContainer"></a>
<a name="//apple_ref/swift/Class/ZipContainer" class="dashAnchor"></a>
<a class="token" href="#/s:C13SWCompression12ZipContainer">ZipContainer</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Provides function to open ZIP archives (containers).</p>
<a href="Classes/ZipContainer.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ZipContainer</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L51-L279">Show on GitHub</a>
</div>
</section>
</div>
@@ -238,7 +279,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L44-L67">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L44-L90">Show on GitHub</a>
</div>
</section>
</div>
@@ -260,7 +301,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A class with unarchive function for Zlib archives.</p>
<p>Provides unarchive function for Zlib archives.</p>
<a href="Classes/ZlibArchive.html" class="slightly-smaller">See more</a>
</div>
@@ -273,7 +314,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L125-L157">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L125-L157">Show on GitHub</a>
</div>
</section>
</div>
@@ -295,7 +336,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Provides function to decompress data, which were compressed with DEFLATE</p>
<p>Provides function to decompress data, which were compressed with DEFLATE.</p>
<a href="Classes/Deflate.html" class="slightly-smaller">See more</a>
</div>
@@ -308,7 +349,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L32-L230">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L32-L230">Show on GitHub</a>
</div>
</section>
</div>
@@ -330,7 +371,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Provides function to decompress data, which were compressed using BZip2</p>
<p>Provides function to decompress data, which were compressed using BZip2.</p>
<a href="Classes/BZip2.html" class="slightly-smaller">See more</a>
</div>
@@ -343,7 +384,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L47-L277">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L47-L277">Show on GitHub</a>
</div>
</section>
</div>
@@ -365,7 +406,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A class with unarchive function for xz archives.</p>
<p>Provides unarchive function for XZ archives.</p>
<a href="Classes/XZArchive.html" class="slightly-smaller">See more</a>
</div>
@@ -378,7 +419,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L58-L346">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L58-L346">Show on GitHub</a>
</div>
</section>
</div>
@@ -391,7 +432,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>Provides function to decompress data, which were compressed using BZip2</p>
<p>Provides function to decompress data, which were compressed using BZip2.</p>
</div>
</section>
@@ -220,7 +226,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L61-L97">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L61-L97">Show on GitHub</a>
</div>
</section>
</div>
@@ -233,7 +239,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>Provides function to decompress data, which were compressed with DEFLATE</p>
<p>Provides function to decompress data, which were compressed with DEFLATE.</p>
</div>
</section>
@@ -220,7 +226,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L46-L50">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L46-L50">Show on GitHub</a>
</div>
</section>
</div>
@@ -233,7 +239,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A class with unarchive function for gzip archives.</p>
<p>Provides unarchive function for GZip archives.</p>
</div>
</section>
@@ -228,7 +234,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L198-L219">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L198-L219">Show on GitHub</a>
</div>
</section>
</div>
@@ -241,7 +247,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -220,7 +226,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L58-L65">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L58-L63">Show on GitHub</a>
</div>
</section>
</div>
@@ -233,7 +239,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -220,7 +226,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L69-L76">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L52-L59">Show on GitHub</a>
</div>
</section>
</div>
@@ -233,7 +239,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A class with unarchive function for xz archives.</p>
<p>Provides unarchive function for XZ archives.</p>
</div>
</section>
@@ -224,7 +230,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L76-L143">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L76-L143">Show on GitHub</a>
</div>
</section>
</div>
@@ -237,7 +243,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -0,0 +1,268 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>ZipContainer Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset="utf-8">
<script src="../js/jquery.min.js" defer></script>
<script src="../js/jazzy.js" defer></script>
</head>
<body>
<a name="//apple_ref/swift/Class/ZipContainer" class="dashAnchor"></a>
<a title="ZipContainer Class Reference"></a>
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="../index.html">
SWCompression Docs
</a>
(100% documented)
</p>
<p class="header-col header-col--secondary">
<a class="header-link" href="https://github.com/tsolomko/SWCompression">
<img class="header-icon" src="../img/gh.png"/>
View on GitHub
</a>
</p>
</header>
<p class="breadcrumbs">
<a class="breadcrumb" href="../index.html">SWCompression Reference</a>
<img class="carat" src="../img/carat.png" />
ZipContainer Class Reference
</p>
<div class="content-wrapper">
<nav class="navigation">
<ul class="nav-groups">
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Classes.html">Classes</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/BZip2.html">BZip2</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/Deflate.html">Deflate</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/GzipArchive.html">GzipArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/LZMA.html">LZMA</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/LZMA2.html">LZMA2</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Enums.html">Enums</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/BZip2Error.html">BZip2Error</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/DeflateError.html">DeflateError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/GzipError.html">GzipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/LZMA2Error.html">LZMA2Error</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/LZMAError.html">LZMAError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Protocols.html">Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Protocols/Archive.html">Archive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Protocols/DecompressionAlgorithm.html">DecompressionAlgorithm</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Structs.html">Structs</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader.html">GzipHeader</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader/CompressionMethod.html"> CompressionMethod</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader/FileSystemType.html"> FileSystemType</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader.html">ZlibHeader</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader/CompressionMethod.html"> CompressionMethod</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader/CompressionLevel.html"> CompressionLevel</a>
</li>
</ul>
</li>
</ul>
</nav>
<article class="main-content">
<section class="section">
<div class="section-content">
<h1>ZipContainer</h1>
<div class="declaration">
<div class="language">
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ZipContainer</span></code></pre>
</div>
</div>
<p>Provides function to open ZIP archives (containers).</p>
</div>
</section>
<section class="section">
<div class="section-content">
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:ZFC13SWCompression12ZipContainer4openFzT13containerDataV10Foundation4Data_GSaT9entryNameSS9entryDataS2___"></a>
<a name="//apple_ref/swift/Method/open(containerData:)" class="dashAnchor"></a>
<a class="token" href="#/s:ZFC13SWCompression12ZipContainer4openFzT13containerDataV10Foundation4Data_GSaT9entryNameSS9entryDataS2___">open(containerData:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Processes ZIP archive (container) and returns an array of tuples <code>(String, Data)</code>.
First member of a tuple is entry&rsquo;s name, second member is entry&rsquo;s data.</p>
<div class="aside aside-important">
<p class="aside-title">Important</p>
<p>The order of entries is defined by ZIP archive and, particularly, creator of given ZIP container.
It is likely that directories will be encountered earlier than files stored in those directories,
but one SHOULD NOT assume that this is the case.</p>
</div>
<div class="aside aside-note">
<p class="aside-title">Note</p>
<p>Currently, there is no universal (platform and file system independent) method to determine if entry is a directory.
One can check this by looking at the size of entry&rsquo;s data (it should be 0 for directory) AND
the last character of entry&rsquo;s name (it should be &lsquo;/&rsquo;). If all of these is true then entry is likely to be a directory.</p>
</div>
<div class="aside aside-note">
<p class="aside-title">Note</p>
<p>Only ZIP containers complying to ISO/IEC 21320-1 standard are supported.</p>
</div>
<div class="aside aside-parameter">
<p class="aside-title">Parameter</p>
<p>Parameter containerData: Data of ZIP container.</p>
</div>
<div class="aside aside-throws">
<p class="aside-title">Throws</p>
<p><code><a href="../Enums/ZipError.html">ZipError</a></code> or <code><a href="../Enums/DeflateError.html">DeflateError</a></code> depending on the type of inconsistency in data.
It may indicate that either the container is damaged or it might not be ZIP container or compressed with Deflate at all.</p>
</div>
<div class="aside aside-returns">
<p class="aside-title">Returns</p>
<p>Array of pairs (tuples) where first member is <code>entryName</code> and second member is <code>entryData</code>.</p>
</div>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">open</span><span class="p">(</span><span class="n">containerData</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">Data</span><span class="p">)</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="p">[(</span><span class="nv">entryName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">entryData</span><span class="p">:</span> <span class="kt">Data</span><span class="p">)]</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>containerData</em>
</code>
</td>
<td>
<div>
<p>Data of ZIP container.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>Array of pairs (tuples) where first member is <code>entryName</code> and second member is <code>entryData</code>.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L74-L277">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
</div>
</section>
</article>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
</html>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A class with unarchive function for Zlib archives.</p>
<p>Provides unarchive function for Zlib archives.</p>
</div>
</section>
@@ -228,7 +234,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L143-L155">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L143-L155">Show on GitHub</a>
</div>
</section>
</div>
@@ -241,7 +247,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -61,6 +61,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -87,6 +90,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZlibError.html">ZlibError</a>
</li>
@@ -177,7 +183,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L21-L35">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L21-L35">Show on GitHub</a>
</div>
</section>
</div>
@@ -224,7 +230,57 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L24-L40">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L24-L40">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:O13SWCompression8ZipError"></a>
<a name="//apple_ref/swift/Enum/ZipError" class="dashAnchor"></a>
<a class="token" href="#/s:O13SWCompression8ZipError">ZipError</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Error happened during processing ZIP archive (container).
It may indicate that either the data is damaged or it might not be ZIP archive (container) at all.</p>
<ul>
<li><code>NotFoundCentralDirectoryEnd</code>: end of Central Directoty record wasn&rsquo;t found.</li>
<li><code>WrongSignature</code>: unsupported signature of one of ZIP container&rsquo;s structures.</li>
<li><code>WrongSize</code>: incorrect compressed or uncompressed size of a ZIP container&rsquo;s entry&rsquo;s data.</li>
<li><code>WrongVersion</code>: unsupported number of version needed to extract ZIP container
(unsupported features are required to open this file).</li>
<li><code>MultiVolumesNotSupported</code>: unsupported feature: multi-volumed or spanned container.</li>
<li><code>EncryptionNotSupported</code>: unsupported feature: encryption.</li>
<li><code>PatchingNotSupported</code>: unsupported feature: patched data.</li>
<li><code>CompressionNotSupported</code>: unsupported feature: specified compression method.</li>
<li><code>WrongLocalHeader</code>: local header of an entry wasn&rsquo;t consistent with Central Directory record.</li>
<li><code>WrongCRC32</code>: computed checksum of entry&rsquo;s data wasn&rsquo;t the same as the one stored in container.</li>
</ul>
<a href="Enums/ZipError.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ZipError</span><span class="p">:</span> <span class="kt">Error</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L27-L48">Show on GitHub</a>
</div>
</section>
</div>
@@ -273,7 +329,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L26-L41">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L26-L41">Show on GitHub</a>
</div>
</section>
</div>
@@ -318,7 +374,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L22-L36">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L22-L36">Show on GitHub</a>
</div>
</section>
</div>
@@ -361,7 +417,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L20-L29">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L20-L29">Show on GitHub</a>
</div>
</section>
</div>
@@ -409,7 +465,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L25-L44">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L25-L44">Show on GitHub</a>
</div>
</section>
</div>
@@ -431,8 +487,8 @@ It may indicate that either the data is damaged or it might not be compressed wi
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Error happened during unarchiving xz archive.
It may indicate that either the data is damaged or it might not be xz archive at all.</p>
<p>Error happened during unarchiving XZ archive.
It may indicate that either the data is damaged or it might not be XZ archive at all.</p>
<ul>
<li><code>WrongMagic</code>: &lsquo;magic&rsquo; bytes in archive&rsquo;s header or footer weren&rsquo;t equal to predefined value.</li>
@@ -460,7 +516,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L28-L55">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L28-L55">Show on GitHub</a>
</div>
</section>
</div>
@@ -473,7 +529,7 @@ Associated value contains already decompressed data.</li>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -187,7 +193,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L27">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L27">Show on GitHub</a>
</div>
</section>
</div>
@@ -221,7 +227,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L29">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L29">Show on GitHub</a>
</div>
</section>
</div>
@@ -255,7 +261,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L31">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L31">Show on GitHub</a>
</div>
</section>
</div>
@@ -289,7 +295,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L33">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L33">Show on GitHub</a>
</div>
</section>
</div>
@@ -323,7 +329,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L35">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L35">Show on GitHub</a>
</div>
</section>
</div>
@@ -357,7 +363,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L37">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L37">Show on GitHub</a>
</div>
</section>
</div>
@@ -391,7 +397,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L39">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L39">Show on GitHub</a>
</div>
</section>
</div>
@@ -425,7 +431,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L41">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L41">Show on GitHub</a>
</div>
</section>
</div>
@@ -459,7 +465,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/BZip2.swift#L43">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/BZip2.swift#L43">Show on GitHub</a>
</div>
</section>
</div>
@@ -472,7 +478,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -182,7 +188,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L22">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L22">Show on GitHub</a>
</div>
</section>
</div>
@@ -216,7 +222,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L24">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L24">Show on GitHub</a>
</div>
</section>
</div>
@@ -250,7 +256,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L26">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L26">Show on GitHub</a>
</div>
</section>
</div>
@@ -284,7 +290,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Deflate.swift#L28">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Deflate.swift#L28">Show on GitHub</a>
</div>
</section>
</div>
@@ -297,7 +303,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -186,7 +192,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L26">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L26">Show on GitHub</a>
</div>
</section>
</div>
@@ -220,7 +226,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L28">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L28">Show on GitHub</a>
</div>
</section>
</div>
@@ -254,7 +260,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L30">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L30">Show on GitHub</a>
</div>
</section>
</div>
@@ -288,7 +294,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L32">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L32">Show on GitHub</a>
</div>
</section>
</div>
@@ -323,7 +329,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L37">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L37">Show on GitHub</a>
</div>
</section>
</div>
@@ -357,7 +363,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L39">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L39">Show on GitHub</a>
</div>
</section>
</div>
@@ -370,7 +376,7 @@ Associated value contains already decompressed data.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -183,7 +189,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L23">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L23">Show on GitHub</a>
</div>
</section>
</div>
@@ -217,7 +223,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L25">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L25">Show on GitHub</a>
</div>
</section>
</div>
@@ -251,7 +257,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L27">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L27">Show on GitHub</a>
</div>
</section>
</div>
@@ -285,7 +291,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L29">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L29">Show on GitHub</a>
</div>
</section>
</div>
@@ -320,7 +326,7 @@ amount of compressed data read was different from the one stored in LZMA2 packet
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA2.swift#L34">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA2.swift#L34">Show on GitHub</a>
</div>
</section>
</div>
@@ -333,7 +339,7 @@ amount of compressed data read was different from the one stored in LZMA2 packet
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -188,7 +194,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L28">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L28">Show on GitHub</a>
</div>
</section>
</div>
@@ -222,7 +228,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L30">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L30">Show on GitHub</a>
</div>
</section>
</div>
@@ -256,7 +262,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L32">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L32">Show on GitHub</a>
</div>
</section>
</div>
@@ -290,7 +296,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L34">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L34">Show on GitHub</a>
</div>
</section>
</div>
@@ -324,7 +330,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L36">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L36">Show on GitHub</a>
</div>
</section>
</div>
@@ -358,7 +364,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L38">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L38">Show on GitHub</a>
</div>
</section>
</div>
@@ -392,7 +398,7 @@ than the repeat length.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/LZMA.swift#L40">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/LZMA.swift#L40">Show on GitHub</a>
</div>
</section>
</div>
@@ -405,7 +411,7 @@ than the repeat length.</li>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,8 +146,8 @@
</div>
</div>
<p>Error happened during unarchiving xz archive.
It may indicate that either the data is damaged or it might not be xz archive at all.</p>
<p>Error happened during unarchiving XZ archive.
It may indicate that either the data is damaged or it might not be XZ archive at all.</p>
<ul>
<li><code>WrongMagic</code>: &lsquo;magic&rsquo; bytes in archive&rsquo;s header or footer weren&rsquo;t equal to predefined value.</li>
@@ -190,7 +196,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L30">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L30">Show on GitHub</a>
</div>
</section>
</div>
@@ -224,7 +230,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L32">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L32">Show on GitHub</a>
</div>
</section>
</div>
@@ -258,7 +264,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L34">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L34">Show on GitHub</a>
</div>
</section>
</div>
@@ -292,7 +298,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L36">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L36">Show on GitHub</a>
</div>
</section>
</div>
@@ -326,7 +332,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L38">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L38">Show on GitHub</a>
</div>
</section>
</div>
@@ -360,7 +366,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L40">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L40">Show on GitHub</a>
</div>
</section>
</div>
@@ -395,7 +401,7 @@ amount of compressed data read was different from the one stored in block header
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L45">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L45">Show on GitHub</a>
</div>
</section>
</div>
@@ -430,7 +436,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L50">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L50">Show on GitHub</a>
</div>
</section>
</div>
@@ -464,7 +470,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L52">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L52">Show on GitHub</a>
</div>
</section>
</div>
@@ -498,7 +504,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/XZArchive.swift#L54">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/XZArchive.swift#L54">Show on GitHub</a>
</div>
</section>
</div>
@@ -511,7 +517,7 @@ Associated value contains already decompressed data.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -0,0 +1,522 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>ZipError Enum Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset="utf-8">
<script src="../js/jquery.min.js" defer></script>
<script src="../js/jazzy.js" defer></script>
</head>
<body>
<a name="//apple_ref/swift/Enum/ZipError" class="dashAnchor"></a>
<a title="ZipError Enum Reference"></a>
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="../index.html">
SWCompression Docs
</a>
(100% documented)
</p>
<p class="header-col header-col--secondary">
<a class="header-link" href="https://github.com/tsolomko/SWCompression">
<img class="header-icon" src="../img/gh.png"/>
View on GitHub
</a>
</p>
</header>
<p class="breadcrumbs">
<a class="breadcrumb" href="../index.html">SWCompression Reference</a>
<img class="carat" src="../img/carat.png" />
ZipError Enum Reference
</p>
<div class="content-wrapper">
<nav class="navigation">
<ul class="nav-groups">
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Classes.html">Classes</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/BZip2.html">BZip2</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/Deflate.html">Deflate</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/GzipArchive.html">GzipArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/LZMA.html">LZMA</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/LZMA2.html">LZMA2</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Enums.html">Enums</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/BZip2Error.html">BZip2Error</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/DeflateError.html">DeflateError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/GzipError.html">GzipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/LZMA2Error.html">LZMA2Error</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/LZMAError.html">LZMAError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Protocols.html">Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Protocols/Archive.html">Archive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Protocols/DecompressionAlgorithm.html">DecompressionAlgorithm</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../Structs.html">Structs</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader.html">GzipHeader</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader/CompressionMethod.html"> CompressionMethod</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/GzipHeader/FileSystemType.html"> FileSystemType</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader.html">ZlibHeader</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader/CompressionMethod.html"> CompressionMethod</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Structs/ZlibHeader/CompressionLevel.html"> CompressionLevel</a>
</li>
</ul>
</li>
</ul>
</nav>
<article class="main-content">
<section class="section">
<div class="section-content">
<h1>ZipError</h1>
<div class="declaration">
<div class="language">
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ZipError</span><span class="p">:</span> <span class="kt">Error</span></code></pre>
</div>
</div>
<p>Error happened during processing ZIP archive (container).
It may indicate that either the data is damaged or it might not be ZIP archive (container) at all.</p>
<ul>
<li><code>NotFoundCentralDirectoryEnd</code>: end of Central Directoty record wasn&rsquo;t found.</li>
<li><code>WrongSignature</code>: unsupported signature of one of ZIP container&rsquo;s structures.</li>
<li><code>WrongSize</code>: incorrect compressed or uncompressed size of a ZIP container&rsquo;s entry&rsquo;s data.</li>
<li><code>WrongVersion</code>: unsupported number of version needed to extract ZIP container
(unsupported features are required to open this file).</li>
<li><code>MultiVolumesNotSupported</code>: unsupported feature: multi-volumed or spanned container.</li>
<li><code>EncryptionNotSupported</code>: unsupported feature: encryption.</li>
<li><code>PatchingNotSupported</code>: unsupported feature: patched data.</li>
<li><code>CompressionNotSupported</code>: unsupported feature: specified compression method.</li>
<li><code>WrongLocalHeader</code>: local header of an entry wasn&rsquo;t consistent with Central Directory record.</li>
<li><code>WrongCRC32</code>: computed checksum of entry&rsquo;s data wasn&rsquo;t the same as the one stored in container.</li>
</ul>
</div>
</section>
<section class="section">
<div class="section-content">
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError27NotFoundCentralDirectoryEndFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/NotFoundCentralDirectoryEnd" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError27NotFoundCentralDirectoryEndFMS0_S0_">NotFoundCentralDirectoryEnd</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>End of Central Directoty record was not found.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">NotFoundCentralDirectoryEnd</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L29">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError14WrongSignatureFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongSignature" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError14WrongSignatureFMS0_S0_">WrongSignature</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong signature of one of ZIP container&rsquo;s structures.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongSignature</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L31">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError9WrongSizeFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongSize" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError9WrongSizeFMS0_S0_">WrongSize</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong either compressed or uncompressed size of a ZIP container&rsquo;s entry.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongSize</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L33">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError12WrongVersionFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongVersion" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError12WrongVersionFMS0_S0_">WrongVersion</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong number of version needed to extract ZIP container.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongVersion</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L35">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError24MultiVolumesNotSupportedFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/MultiVolumesNotSupported" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError24MultiVolumesNotSupportedFMS0_S0_">MultiVolumesNotSupported</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Archive either spanned or consists of several volumes. This feature is not supported.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">MultiVolumesNotSupported</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L37">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError22EncryptionNotSupportedFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/EncryptionNotSupported" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError22EncryptionNotSupportedFMS0_S0_">EncryptionNotSupported</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Entry or record is encrypted. This feature is not supported.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">EncryptionNotSupported</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L39">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError20PatchingNotSupportedFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/PatchingNotSupported" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError20PatchingNotSupportedFMS0_S0_">PatchingNotSupported</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Entry contains patched data. This feature is not supported.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">PatchingNotSupported</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L41">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError23CompressionNotSupportedFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/CompressionNotSupported" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError23CompressionNotSupportedFMS0_S0_">CompressionNotSupported</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong compression method of an entry.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">CompressionNotSupported</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L43">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError16WrongLocalHeaderFMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongLocalHeader" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError16WrongLocalHeaderFMS0_S0_">WrongLocalHeader</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong local header of an entry.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongLocalHeader</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L45">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:FO13SWCompression8ZipError10WrongCRC32FMS0_S0_"></a>
<a name="//apple_ref/swift/Element/WrongCRC32" class="dashAnchor"></a>
<a class="token" href="#/s:FO13SWCompression8ZipError10WrongCRC32FMS0_S0_">WrongCRC32</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Wrong computed CRC32 of an entry.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">case</span> <span class="kt">WrongCRC32</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZipContainer.swift#L47">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
</div>
</section>
</article>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
</html>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -184,7 +190,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L24">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L24">Show on GitHub</a>
</div>
</section>
</div>
@@ -218,7 +224,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L26">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L26">Show on GitHub</a>
</div>
</section>
</div>
@@ -252,7 +258,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L28">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L28">Show on GitHub</a>
</div>
</section>
</div>
@@ -286,7 +292,7 @@ Associated value contains already decompressed data.</li>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L30">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L30">Show on GitHub</a>
</div>
</section>
</div>
@@ -321,7 +327,7 @@ Associated value contains already decompressed data.</p>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L35">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L35">Show on GitHub</a>
</div>
</section>
</div>
@@ -334,7 +340,7 @@ Associated value contains already decompressed data.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -61,6 +61,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -87,6 +90,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZlibError.html">ZlibError</a>
</li>
@@ -168,7 +174,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Protocols.swift#L12-L17">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Protocols.swift#L12-L17">Show on GitHub</a>
</div>
</section>
</div>
@@ -199,7 +205,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Protocols.swift#L20-L25">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Protocols.swift#L20-L25">Show on GitHub</a>
</div>
</section>
</div>
@@ -212,7 +218,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Protocols.swift#L15">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Protocols.swift#L15">Show on GitHub</a>
</div>
</section>
</div>
@@ -187,7 +193,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/Protocols.swift#L23">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/Protocols.swift#L23">Show on GitHub</a>
</div>
</section>
</div>
@@ -187,7 +193,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -61,6 +61,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -87,6 +90,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZlibError.html">ZlibError</a>
</li>
@@ -155,7 +161,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A strucutre which provides information about gzip archive.</p>
<p>A structure which provides information about gzip archive.</p>
<a href="Structs/GzipHeader.html" class="slightly-smaller">See more</a>
</div>
@@ -168,7 +174,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L43-L177">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L43-L177">Show on GitHub</a>
</div>
</section>
</div>
@@ -190,7 +196,7 @@
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>A strucutre which provides information about zlib archive.</p>
<p>A structure which provides information about zlib archive.</p>
<a href="Structs/ZlibHeader.html" class="slightly-smaller">See more</a>
</div>
@@ -203,7 +209,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L39-L122">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L39-L122">Show on GitHub</a>
</div>
</section>
</div>
@@ -216,7 +222,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A strucutre which provides information about gzip archive.</p>
<p>A structure which provides information about gzip archive.</p>
</div>
</section>
@@ -175,7 +181,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L54-L57">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L54-L57">Show on GitHub</a>
</div>
</section>
</div>
@@ -206,7 +212,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L60-L71">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L60-L71">Show on GitHub</a>
</div>
</section>
</div>
@@ -236,7 +242,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L74">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L74">Show on GitHub</a>
</div>
</section>
</div>
@@ -266,7 +272,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L76">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L76">Show on GitHub</a>
</div>
</section>
</div>
@@ -296,7 +302,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L78">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L78">Show on GitHub</a>
</div>
</section>
</div>
@@ -326,7 +332,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L80">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L80">Show on GitHub</a>
</div>
</section>
</div>
@@ -356,7 +362,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L82">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L82">Show on GitHub</a>
</div>
</section>
</div>
@@ -421,7 +427,7 @@ it might not be compressed with gzip at all.</p>
</table>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L95-L98">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L95-L98">Show on GitHub</a>
</div>
</section>
</div>
@@ -434,7 +440,7 @@ it might not be compressed with gzip at all.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L56">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L56">Show on GitHub</a>
</div>
</section>
</div>
@@ -187,7 +193,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L62">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L62">Show on GitHub</a>
</div>
</section>
</div>
@@ -208,7 +214,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L64">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L64">Show on GitHub</a>
</div>
</section>
</div>
@@ -242,7 +248,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L66">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L66">Show on GitHub</a>
</div>
</section>
</div>
@@ -276,7 +282,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L68">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L68">Show on GitHub</a>
</div>
</section>
</div>
@@ -310,7 +316,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/GzipArchive.swift#L70">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/GzipArchive.swift#L70">Show on GitHub</a>
</div>
</section>
</div>
@@ -323,7 +329,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -140,7 +146,7 @@
</div>
</div>
<p>A strucutre which provides information about zlib archive.</p>
<p>A structure which provides information about zlib archive.</p>
</div>
</section>
@@ -175,7 +181,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L42-L45">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L42-L45">Show on GitHub</a>
</div>
</section>
</div>
@@ -206,7 +212,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L48-L57">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L48-L57">Show on GitHub</a>
</div>
</section>
</div>
@@ -236,7 +242,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L60">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L60">Show on GitHub</a>
</div>
</section>
</div>
@@ -266,7 +272,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L62">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L62">Show on GitHub</a>
</div>
</section>
</div>
@@ -296,7 +302,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L64">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L64">Show on GitHub</a>
</div>
</section>
</div>
@@ -361,7 +367,7 @@ it might not be compressed with zlib at all.</p>
</table>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L76-L79">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L76-L79">Show on GitHub</a>
</div>
</section>
</div>
@@ -374,7 +380,7 @@ it might not be compressed with zlib at all.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L50">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L50">Show on GitHub</a>
</div>
</section>
</div>
@@ -208,7 +214,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L52">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L52">Show on GitHub</a>
</div>
</section>
</div>
@@ -242,7 +248,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L54">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L54">Show on GitHub</a>
</div>
</section>
</div>
@@ -276,7 +282,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L56">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L56">Show on GitHub</a>
</div>
</section>
</div>
@@ -289,7 +295,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -62,6 +62,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -88,6 +91,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/ZlibError.html">ZlibError</a>
</li>
@@ -174,7 +180,7 @@
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.0.0/Sources/ZlibArchive.swift#L44">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.1.0/Sources/ZlibArchive.swift#L44">Show on GitHub</a>
</div>
</section>
</div>
@@ -187,7 +193,7 @@
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
@@ -61,6 +61,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/XZArchive.html">XZArchive</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZipContainer.html">ZipContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Classes/ZlibArchive.html">ZlibArchive</a>
</li>
@@ -87,6 +90,9 @@
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/XZError.html">XZError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZipError.html">ZipError</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="Enums/ZlibError.html">ZlibError</a>
</li>
@@ -161,6 +167,11 @@ And yes, it is also in Objective-C.</p>
<a href='#features' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='features'>Features</h2>
<ul>
<li>Containers:
<ul>
<li>ZIP (complying to ISO/IEC 21320 standard)</li>
</ul></li>
<li>(De)compression algorithms:
<ul>
@@ -306,6 +317,9 @@ so some difference in speed is expected.</p>
<li><a href="http://www.7-zip.org/sdk.html">LZMA SDK and specification</a></li>
<li><a href="http://tukaani.org/xz/xz-file-format-1.0.4.txt">XZ specification</a></li>
<li><a href="https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm">Wikipedia article about LZMA</a></li>
<li><a href="http://www.pkware.com/appnote">.ZIP Application Note</a></li>
<li><a href="http://www.iso.org/iso/catalogue_detail.htm?csnumber=60101">ISO/IEC 21320-1</a></li>
<li><a href="https://opensource.apple.com/source/zip/zip-6/unzip/unzip/proginfo/extra.fld">List of defined ZIP extra fields</a></li>
</ul>
</div>
@@ -315,7 +329,7 @@ so some difference in speed is expected.</p>
</article>
</div>
<section class="footer">
<p>© 2016 Timofey Solomko</p>
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>

Some files were not shown because too many files have changed in this diff Show More