Merge branch 'release-2.1.0' into develop

This commit is contained in:
Timofey Solomko
2017-01-29 12:05:40 +03:00
82 changed files with 2550 additions and 296 deletions
+2 -2
View File
@@ -4,9 +4,9 @@ exclude: Tests/
swift_version: 3.0.2
author: Timofey Solomko
module: SWCompression
module_version: 2.0.1
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.1
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 -1
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
@@ -159,7 +161,6 @@ To sum up, it is __highly recommended__ to build SWCompression with 'Release' co
Future plans
-------------
- ZIP (mostly according to ISO/IEC 21320 standard).
- Tar unarchiving.
- Deflate compression.
- BZip2 compression.
@@ -174,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
+21 -9
View File
@@ -24,7 +24,6 @@
063DF11A1DE1F2E200F38082 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 063DF1061DE1F07800F38082 /* Extensions.swift */; };
063DF11C1DE1F2E200F38082 /* HuffmanTree.swift in Sources */ = {isa = PBXBuildFile; fileRef = 063DF1081DE1F07800F38082 /* HuffmanTree.swift */; };
063DF11D1DE1F2E200F38082 /* Protocols.swift in Sources */ = {isa = PBXBuildFile; fileRef = 063DF1091DE1F07800F38082 /* Protocols.swift */; };
064FF4581E2B7F0E0062054B /* Zip64Test.zip in Resources */ = {isa = PBXBuildFile; fileRef = 064FF4571E2B7F0E0062054B /* Zip64Test.zip */; };
065569681DC65C2A00A47E66 /* GzipArchive.swift in Sources */ = {isa = PBXBuildFile; fileRef = 063364E21DC52979007E313F /* GzipArchive.swift */; };
065569691DC65C2A00A47E66 /* ZlibArchive.swift in Sources */ = {isa = PBXBuildFile; fileRef = 064492581DC606D400F10981 /* ZlibArchive.swift */; };
0655696A1DC65C2A00A47E66 /* Deflate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 061FCE251DBCC4BE0052F7BE /* Deflate.swift */; };
@@ -38,7 +37,6 @@
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 */; };
0675183B1E2A881F00D16354 /* SWCompressionSourceCode.zip in Resources */ = {isa = PBXBuildFile; fileRef = 0675183A1E2A881F00D16354 /* SWCompressionSourceCode.zip */; };
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 */; };
@@ -87,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 */; };
@@ -159,12 +160,10 @@
063DF1081DE1F07800F38082 /* HuffmanTree.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = HuffmanTree.swift; path = Sources/HuffmanTree.swift; sourceTree = SOURCE_ROOT; };
063DF1091DE1F07800F38082 /* Protocols.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Protocols.swift; path = Sources/Protocols.swift; sourceTree = SOURCE_ROOT; };
064492581DC606D400F10981 /* ZlibArchive.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ZlibArchive.swift; sourceTree = "<group>"; };
064FF4571E2B7F0E0062054B /* Zip64Test.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = Zip64Test.zip; sourceTree = "<group>"; };
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>"; };
0675183A1E2A881F00D16354 /* SWCompressionSourceCode.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = SWCompressionSourceCode.zip; 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>"; };
@@ -189,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>"; };
@@ -307,7 +309,6 @@
06E234811E06A6C200F18798 /* CheckSums.swift */,
063DF1051DE1F07800F38082 /* DataWithPointer.swift */,
063DF1061DE1F07800F38082 /* Extensions.swift */,
063DF1081DE1F07800F38082 /* HuffmanTree.swift */,
063DF1091DE1F07800F38082 /* Protocols.swift */,
);
path = Common;
@@ -325,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 = (
@@ -351,6 +362,7 @@
children = (
06A3931F1DE06FFE00182E12 /* Common */,
069D0FFE1E0D6CF200D8AA87 /* LZMA */,
063DF1081DE1F07800F38082 /* HuffmanTree.swift */,
06E2346B1E068E9600F18798 /* XZArchive.swift */,
063364E21DC52979007E313F /* GzipArchive.swift */,
064492581DC606D400F10981 /* ZlibArchive.swift */,
@@ -388,10 +400,9 @@
06CC184E1DE35269003532F5 /* Deflate */,
06CC18561DE35269003532F5 /* GZip */,
069AC2161E02DE490041AC13 /* LZMA */,
06BD0D1F1E3D0C630054AA5C /* ZIP */,
06CC185F1DE35269003532F5 /* test.zlib */,
06B374CA1E0EECD500064853 /* random_file.zlib */,
0675183A1E2A881F00D16354 /* SWCompressionSourceCode.zip */,
064FF4571E2B7F0E0062054B /* Zip64Test.zip */,
);
path = "Test Files";
sourceTree = "<group>";
@@ -689,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 */,
@@ -698,17 +710,17 @@
06E2347A1E069A7F00F18798 /* test3.xz in Resources */,
06B374C91E0EECCC00064853 /* random_file.gz in Resources */,
06991C701E05A9F70030FF07 /* test9.lzma in Resources */,
064FF4581E2B7F0E0062054B /* Zip64Test.zip in Resources */,
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 */,
0675183B1E2A881F00D16354 /* SWCompressionSourceCode.zip in Resources */,
06BD0D231E3D0C630054AA5C /* SWCompressionSourceCode.zip in Resources */,
06CC18631DE35269003532F5 /* test4.answer in Resources */,
06B374CB1E0EECD500064853 /* random_file.zlib in Resources */,
06FCA0581E033DDA00B6932F /* test8.answer in Resources */,
+1 -1
View File
@@ -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
@@ -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 {
/**
+2 -2
View File
@@ -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
@@ -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>
+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>NSHumanReadableCopyright</key>
+3 -3
View File
@@ -9,8 +9,8 @@
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 {
/**
+102 -29
View File
@@ -8,25 +8,70 @@
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
case WrongCentralDirectoryDisk
case WrongZip64LocatorSignature
case WrongZip64EndCentralDirectorySignature
/// 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
case WrongCentralDirectoryHeaderSignature
/// 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
case WrongLocalHeaderSignature
/// Wrong local header of an entry.
case WrongLocalHeader
case DataDescriptorNotSupported
/// Wrong computed CRC32 of an entry.
case WrongCRC32
}
/// Provides function to open ZIP archives (containers).
public class ZipContainer {
public static func open(containerData data: Data) throws -> [String : Data] {
/**
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)
@@ -54,7 +99,7 @@ public class ZipContainer {
zip64RecordExists = true
}
guard currentDiskNumber == cdDiskNumber
else { throw ZipError.WrongCentralDirectoryDisk }
else { throw ZipError.MultiVolumesNotSupported }
/// Number of CD entries on the current disk.
var cdEntriesCurrentDisk = pointerData.uint64FromAlignedBytes(count: 2)
@@ -64,7 +109,7 @@ public class ZipContainer {
zip64RecordExists = true
}
guard cdEntries == cdEntriesCurrentDisk
else { throw ZipError.WrongCentralDirectoryDisk } // TODO: Probably it should be another error.
else { throw ZipError.MultiVolumesNotSupported }
/// Size of Central Directory.
var cdSize = pointerData.uint64FromAlignedBytes(count: 4)
@@ -88,41 +133,43 @@ public class ZipContainer {
// Check signature.
guard pointerData.uint64FromAlignedBytes(count: 4) == 0x07064b50
else { throw ZipError.WrongZip64LocatorSignature }
else { throw ZipError.WrongSignature }
let zip64CDStartDisk = pointerData.uint64FromAlignedBytes(count: 4)
guard currentDiskNumber == zip64CDStartDisk
else { throw ZipError.WrongCentralDirectoryDisk } // TODO: Probably it should be another error.
else { throw ZipError.MultiVolumesNotSupported }
let zip64CDEndOffset = pointerData.uint64FromAlignedBytes(count: 8)
let totalDisks = pointerData.uint64FromAlignedBytes(count: 1)
guard totalDisks == 1
else { throw ZipError.WrongCentralDirectoryDisk } // TODO: Probably it should be another error.
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.WrongZip64EndCentralDirectorySignature }
else { throw ZipError.WrongSignature }
let zip64EndCDSize = pointerData.uint64FromAlignedBytes(count: 8)
// Following 8 bytes are size of end of zip64 CD, but we don't need it.
_ = pointerData.uint64FromAlignedBytes(count: 8)
let versionMadeBy = pointerData.uint64FromAlignedBytes(count: 2)
// 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 // TODO: This value should probably be adjusted according to really supported features.
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.WrongCentralDirectoryDisk }
else { throw ZipError.MultiVolumesNotSupported }
cdEntriesCurrentDisk = pointerData.uint64FromAlignedBytes(count: 8)
cdEntries = pointerData.uint64FromAlignedBytes(count: 8)
guard cdEntries == cdEntriesCurrentDisk
else { throw ZipError.WrongCentralDirectoryDisk } // TODO: Probably it should be another error.
else { throw ZipError.MultiVolumesNotSupported }
cdSize = pointerData.uint64FromAlignedBytes(count: 8)
cdOffset = pointerData.uint64FromAlignedBytes(count: 8)
@@ -136,19 +183,19 @@ public class ZipContainer {
// OK, now we are ready to read Central Directory itself.
pointerData.index = Int(UInt(truncatingBitPattern: cdOffset))
var result: [String : Data] = [:]
var result: [(entryName: String, entryData: Data)] = []
for _ in 0..<cdEntries {
// Check signature.
guard pointerData.uint64FromAlignedBytes(count: 4) == 0x02014b50
else { throw ZipError.WrongCentralDirectoryHeaderSignature }
else { throw ZipError.WrongSignature }
let cdEntry = CentralDirectoryEntry(&pointerData)
// Let's check entry's values for consistency.
guard cdEntry.versionNeeded <= 45 // TODO: This value should probably be adjusted according to really supported features.
guard cdEntry.versionNeeded <= 45
else { throw ZipError.WrongVersion }
guard cdEntry.diskNumberStart == currentDiskNumber
else { throw ZipError.WrongCentralDirectoryDisk }
else { throw ZipError.MultiVolumesNotSupported }
guard cdEntry.generalPurposeBitFlags & 0x2000 == 0 ||
cdEntry.generalPurposeBitFlags & 0x40 == 0 ||
cdEntry.generalPurposeBitFlags & 0x01 == 0
@@ -165,7 +212,7 @@ public class ZipContainer {
// Check signature.
guard pointerData.uint64FromAlignedBytes(count: 4) == 0x04034b50
else { throw ZipError.WrongLocalHeaderSignature }
else { throw ZipError.WrongSignature }
let localHeader = LocalHeader(&pointerData)
@@ -176,13 +223,23 @@ public class ZipContainer {
localHeader.lastModFileTime == cdEntry.lastModFileTime &&
localHeader.lastModFileDate == cdEntry.lastModFileDate
else { throw ZipError.WrongLocalHeader }
guard localHeader.generalPurposeBitFlags & 0x08 == 0
else { throw ZipError.DataDescriptorNotSupported }
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: Int(UInt32(truncatingBitPattern: localHeader.uncompSize)))
fileBytes = pointerData.alignedBytes(count: uncompSize)
case 8:
fileBytes = try Deflate.decompress(&pointerData)
// Sometimes pointerData stays in not-aligned state after deflate decompression.
@@ -191,11 +248,27 @@ public class ZipContainer {
default:
throw ZipError.CompressionNotSupported
}
let realCompSize = pointerData.index - fileDataStart
guard localHeader.crc32 == UInt32(CheckSums.crc32(fileBytes))
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[localHeader.fileName!] = Data(bytes: fileBytes)
result.append((localHeader.fileName!, Data(bytes: fileBytes)))
pointerData.index = currentCDOffset
}
+2 -2
View File
@@ -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 {
/**
+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:3763170cb942ccc8a26fac7ca30571a85ab29f343445cf23352d30acd2c69caa
size 3209086
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cf8d32172aa2e8ae09b8ce4f3fe190d9397f04e2f1c3b2d3c4ae6b019f769585
size 3209192
-3
View File
@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca837f38b5ca7e1f25c3905859aa14b69bb9149d2afdca756a4c28e30538bfee
size 42350
+23 -3
View File
@@ -31,8 +31,8 @@ class ZipTests: XCTestCase {
}
}
func test64() {
guard let testData = try? Data(contentsOf: Constants.url(forTest: "Zip64Test", withType: ZipTests.testType),
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
@@ -43,10 +43,30 @@ class ZipTests: XCTestCase {
return
}
guard zipDict.count == 1 else {
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
}
}
}
+53 -12
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.1/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.1/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.1/Sources/LZMA.swift#L44-L90">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.1/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.1/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.1/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.1/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>
+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>
@@ -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.1/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>
+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>
@@ -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.1/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>
+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>
@@ -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.1/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>
+7 -1
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.1/Sources/LZMA.swift#L58-L63">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>
+7 -1
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.1/Sources/LZMA2.swift#L52-L59">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>
+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>
@@ -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.1/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>
+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>
+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>
@@ -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.1/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>
+65 -9
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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
+15 -9
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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
+10 -4
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.1/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.1/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.1/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.1/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>
+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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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>
+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>
@@ -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.1/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.1/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.1/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.1/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.1/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>
+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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
+18 -12
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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
+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>
+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>
@@ -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.1/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.1/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.1/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.1/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.1/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>
+8 -2
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.1/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.1/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>
+7 -1
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.1/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>
+7 -1
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.1/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>
+10 -4
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.1/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.1/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>
+15 -9
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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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>
+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.1/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.1/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.1/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.1/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.1/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>
+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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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>
+10 -4
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.1/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.1/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.1/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.1/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>
@@ -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.1/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>
@@ -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.1/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.1/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.1/Sources/LZMA.swift#L44-L90">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.1/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.1/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.1/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.1/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>
@@ -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.1/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>
@@ -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.1/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>
@@ -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.1/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>
@@ -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.1/Sources/LZMA.swift#L58-L63">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>
@@ -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.1/Sources/LZMA2.swift#L52-L59">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>
@@ -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.1/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>
@@ -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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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>
@@ -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.1/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>
@@ -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.1/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>
@@ -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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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>
@@ -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.1/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.1/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.1/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.1/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>
@@ -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.1/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>
@@ -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>
Binary file not shown.
+14
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>
@@ -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>