EntryType
-Undocumented
+public enum EntryType: String
+
+ Represents a type of an entry.
diff --git a/.jazzy.yaml b/.jazzy.yaml
index f48e98ac..36362ae1 100644
--- a/.jazzy.yaml
+++ b/.jazzy.yaml
@@ -3,9 +3,9 @@ clean: true
exclude: Tests/
author: Timofey Solomko
module: SWCompression
-module_version: 3.0.0-test2
+module_version: 3.0.0
copyright: '© 2017 Timofey Solomko'
readme: README.md
github_url: https://github.com/tsolomko/SWCompression
-github_file_prefix: https://github.com/tsolomko/SWCompression/tree/v3.0.0-test2
+github_file_prefix: https://github.com/tsolomko/SWCompression/tree/v3.0.0
theme: fullwidth
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 60c8c480..10a9cd46 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,24 +1,29 @@
# Changelog
v3.0.0
----------------
-#### test2
-- Added support for TAR containers.
- - Various standards are supported (pre-POSIX, POSIX-1988, pax).
- - Added subspec for TAR features.
-- Added Container protocol.
- - Reworked ZipContainer to conform to new protocol.
-- All Errors cases renamed to conform Swift naming convetions (lowerCamelCase).
-- Removed LZMAOutWindow.
-- Test results combined into single document.
-- Reduced tests sizes.
-- Included 2.4.1 and 2.4.2 changes.
-
-#### test1
-- BZip2 decompression now checks CRC32.
-- GZipHeader.modificationTime is now Optional.
-- Enabled support for bzip2 and lzma compressed files in zip containers.
- - In CocoaPods configurations availability of such support depends on
- the presence of corresponding podspecs.
+- All errors have been renamed, so they conform to Swift Naming Conventions (lowerCamelCase).
+- Added `Container` and `ContainerEntry` protocols.
+- Most methods have their arguments' labels renamed to make usage shorter.
+- Most documentation have been edited to improve readability.
+- Multiple files with results of performance tests replaced with consolidated one.
+- Enabled support for LZMA and BZip2 compression algorithms.
+- `ZipEntry` now conforms to `ContainerEntry` protocol.
+- This also means that entry's data is now provided through `ZipEntry.data()` instead of `ZipContainer`'s function.
+- Improved detection of directories if ZIP container was created on MS-DOS or UNIX-like systems.
+- `ZipError.wrongCRC32` now contains entry's data as associated value.
+- Fixed a problem where Zip64 sized fields weren't used during processing of Data Descriptor.
+- Added some measures to prevent crashes when it is impossible to read ZIP text fields (file name or comment) in UTF-8 encoding
+- Added support for TAR containers in various format versions.
+- Now `GzipArchive.unarchive` function unarchives only first 'member' of archive.
+- Added support for GZip archive's option in `archive` function.
+- `GzipHeader.modificationTime` is now Optional.
+- `GzipHeader.originalFileName` renamed to `GzipHeader.fileName`.
+- Added `GzipHeader.isTextFile` property which corresponds to same named flag in archive's header.
+- Now `XZArchive.unarchive` function unarchives only first stream of archive.
+- Check for xz archive's footer's 'magic' bytes is now performed at the beginning of processing.
+- XZ header's checksum is now checked before parsing reserved flags.
+- BZip2 now performs CRC32 check for decompressed data.
+- Removed internal `LZMAOutWindow` auxiliary class.
v2.4.3
----------------
diff --git a/SWCompression.podspec b/SWCompression.podspec
index 707a68c2..bfbcb622 100644
--- a/SWCompression.podspec
+++ b/SWCompression.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "SWCompression"
- s.version = "3.0.0-test2"
+ s.version = "3.0.0"
s.summary = "Framework with implementations in Swift of different (de)compression algorithms"
s.description = <<-DESC
diff --git a/Sources/Service/Info-iOS.plist b/Sources/Service/Info-iOS.plist
index 5e0b9206..ee73227e 100644
--- a/Sources/Service/Info-iOS.plist
+++ b/Sources/Service/Info-iOS.plist
@@ -15,7 +15,7 @@
@@ -191,7 +191,7 @@
Provides function to decompress data, which were compressed with LZMA2 Provides decompression function for LZMA2 algorithm. Swift Provides unarchive function for GZip archives. Provides unarchive and archive functions for GZip archives. Represents either a file or directory entry inside ZIP archive. Represents either a file or directory entry in ZIP container. Provides function which opens ZIP archives (containers). Provides open function for ZIP containers. Provides function to decompress data, which were compressed with LZMA Provides decompression function for LZMA algorithm. Provides unarchive function for Zlib archives. Provides unarchive and archive functions for Zlib archives. Provides function to decompress data, which were compressed with DEFLATE. Provides compression and decompression functions for Deflate algorithm. Swift Provides function to decompress data, which were compressed using BZip2. Provides decompression function for BZip2 algorithm. Swift Represents either a file or directory entry inside TAR archive. Represents either a file or directory entry in TAR container. Provides function which opens TAR archives (containers). Provides open function for TAR containers.Declaration
+ public final class LZMA2: DecompressionAlgorithmpublic class LZMA2: DecompressionAlgorithmDeclaration
Declaration
Declaration
Declaration
+ public final class Deflate: DecompressionAlgorithmpublic class Deflate: DecompressionAlgorithmDeclaration
+ public final class BZip2: DecompressionAlgorithmpublic class BZip2: DecompressionAlgorithm
@@ -172,11 +172,11 @@
public final class BZip2: DecompressionAlgorithm
+ public class BZip2: DecompressionAlgorithm
Provides function to decompress data, which were compressed using BZip2.
+Provides decompression function for BZip2 algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Decompresses compressedData with BZip2 algortihm.
Decompresses data using BZip2 algortihm.
If data passed is not actually compressed with BZip2, BZip2Error will be thrown.
If data is not actually compressed with BZip2, BZip2Error will be thrown.
Throws
-BZip2Error if unexpected byte (bit) sequence was encountered in compressedData.
-It may indicate that either the data is damaged or it might not be compressed with BZip2 at all.
BZip2Error if unexpected byte (bit) sequence was encountered in data.
+It may indicate that either data is damaged or it might not be compressed with BZip2 at all.
Swift
-public static func decompress(compressedData data: Data) throws -> Data
+ public static func decompress(data: Data) throws -> Data
- compressedData
+ data
Decompressed data.
diff --git a/docs/Classes/Deflate.html b/docs/Classes/Deflate.html index 48b672aa..50211aec 100644 --- a/docs/Classes/Deflate.html +++ b/docs/Classes/Deflate.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -172,11 +172,11 @@
public final class Deflate: DecompressionAlgorithm
+ public class Deflate: DecompressionAlgorithm
Provides function to decompress data, which were compressed with DEFLATE.
+Provides compression and decompression functions for Deflate algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Decompresses compressedData with DEFLATE algortihm.
Decompresses data using Deflate algortihm.
If data passed is not actually compressed with DEFLATE, DeflateError will be thrown.
If data is not actually compressed with Deflate, DeflateError will be thrown.
Note
+This function is specification compliant.
+ +Throws
-DeflateError if unexpected byte (bit) sequence was encountered in compressedData.
-It may indicate that either the data is damaged or it might not be compressed with DEFLATE at all.
DeflateError if unexpected byte (bit) sequence was encountered in data.
+It may indicate that either data is damaged or it might not be compressed with Deflate at all.
Swift
-public static func decompress(compressedData data: Data) throws -> Data
+ public static func decompress(data: Data) throws -> Data
- compressedData
+ data
Data compressed with DEFLATE.
+Data compressed with Deflate.
Decompressed data.
Compresses data with DEFLATE algortihm.
Compresses data with Deflate algortihm.
If during compression something goes wrong DeflateError will be thrown.
Note
- Currently, SWCompression creates only one block for all data +Currently, SWCompression creates only one block for all data and the block can either be uncompressed or compressed with static Huffman encoding. -Uncompressed block is created if amount of data provided is less than 3 bytes and -static Huffman is used in all other cases. +Choice of one block type or the other depends on bytes’ statistics of data. +However, if data size is greater than 65535 (the maximum value stored in 2 bytes), +then static Huffman block will be created.
+
+ data
+
+ |
+
+
+
+ Data to compress. + |
+
@@ -172,11 +172,11 @@
Provides unarchive function for GZip archives.
+Provides unarchive and archive functions for GZip archives.
@@ -188,9 +188,9 @@
-
-
- unarchive(archiveData:)
+
+
+ unarchive(archive:)
Unarchives gzip archive stored in archiveData.
Unarchives GZip archive.
-If data passed is not actually a gzip archive, GzipError will be thrown.
If data passed is not actually a GZip archive, GzipError will be thrown.
If data inside the archive is not actually compressed with DEFLATE algorithm, DeflateError will be thrown.
If data in archive is not actually compressed with Deflate algorithm, DeflateError will be thrown.
Note
This function is specification compliant.
@@ -210,8 +210,9 @@Throws
-DeflateError or GzipError depending on the type of inconsistency in data.
-It may indicate that either the data is damaged or it might not be compressed with gzip or DEFLATE at all.
DeflateError or GzipError depending on the type of the problem.
+It may indicate that either archive is damaged or
+it might not be archived with GZip or compressed with Deflate at all.
Swift
-public static func unarchive(archiveData data: Data) throws -> Data
+ public static func unarchive(archive data: Data) throws -> Data
- archiveData
+ archive
Data compressed with gzip.
+Data archived with GZip.
Unarchived data.
-
-
- archive(data:)
+
+
+ archive(data:comment:fileName:writeHeaderCRC:isTextFile:osType:modificationTime:)
Archives data into GZip archive. Data will be also compressed with DEFLTATE algorithm.
-Fields in the header of the resulting archive will be set to default values
-(i.e. no mtime, no flags, no file name, unknown OS type).
-It will be also specified that the compressor used slowest DEFLATE algorithm.
Archives data into GZip archive, using various specified options.
+Data will be also compressed with Deflate algorithm.
+It will be also specified in archive’s header that the compressor used the slowest Deflate algorithm.
If during compression something goes wrong DeflateError will be thrown.
If during compression something goes wrong DeflateError will be thrown.
+If either fileName or comment cannot be encoded with ISO Latin-1 encoding,
+then GzipError.cannotEncodeISOLatin1 will be thrown.
Note
This function is specification compliant.
@@ -279,7 +281,7 @@ It will be also specified that the compressor used slowest DEFLATE algorithm.Throws
-DeflateError if an error was encountered during compression.
DeflateError or GzipError.cannotEncodeISOLatin1 depending on the type of of the problem.
Swift
-public static func archive(data: Data) throws -> Data
+ public static func archive(data: Data, comment: String? = nil, fileName: String? = nil,
+ writeHeaderCRC: Bool = false, isTextFile: Bool = false,
+ osType: GzipHeader.FileSystemType? = nil, modificationTime: Date? = nil) throws -> Data
+ comment
+
+ Additional comment, which will be stored as a separate field in archive.
+
+ fileName
+
+ Name of the file which will be archived.
+
+ writeHeaderCRC
+
+ Set to true, if you want to store consistency check for archive’s header.
+
+ isTextFile
+
+ Set to true, if the file which will be archived is text file or ASCII-file.
+
+ osType
+
+ Type of the system on which this archive will be created.
+
+ modificationTime
+
+ Last time the file was modified.
+Data object with resulting archive.
+Resulting archive’s data.
@@ -172,11 +172,11 @@
public final class LZMA: DecompressionAlgorithm
+ public class LZMA: DecompressionAlgorithm
Provides function to decompress data, which were compressed with LZMA
+Provides decompression function for LZMA algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Decompresses compressedData with LZMA algortihm.
Decompresses data using LZMA algortihm.
If data passed is not actually compressed with LZMA, LZMAError will be thrown.
If data is not actually compressed with LZMA, LZMAError will be thrown.
Throws
-LZMAError if unexpected byte (bit) sequence was encountered in compressedData.
-It may indicate that either the data is damaged or it might not be compressed with LZMA at all.
LZMAError if unexpected byte (bit) sequence was encountered in data.
+It may indicate that either data is damaged or it might not be compressed with LZMA at all.
Swift
-public static func decompress(compressedData data: Data) throws -> Data
+ public static func decompress(data: Data) throws -> Data
- compressedData
+ data
Decompressed data.
diff --git a/docs/Classes/LZMA2.html b/docs/Classes/LZMA2.html index 644475ed..3b9cce92 100644 --- a/docs/Classes/LZMA2.html +++ b/docs/Classes/LZMA2.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -172,11 +172,11 @@
public final class LZMA2: DecompressionAlgorithm
+ public class LZMA2: DecompressionAlgorithm
Provides function to decompress data, which were compressed with LZMA2
+Provides decompression function for LZMA2 algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Decompresses compressedData with LZMA2 algortihm. LZMA2 is a modification of LZMA.
Decompresses data using LZMA2 algortihm.
If data passed is not actually compressed with LZMA2, LZMA2Error or LZMAError will be thrown.
If data is not actually compressed with LZMA2, LZMAError or LZMA2Error will be thrown.
Throws
-LZMA2Error or LZMAError if unexpected byte (bit) sequence was encountered in compressedData.
-It may indicate that either the data is damaged or it might not be compressed with LZMA2 at all.
LZMAError or LZMA2Error if unexpected byte (bit) sequence was encountered in data.
+It may indicate that either data is damaged or it might not be compressed with LZMA2 at all.
Swift
-public static func decompress(compressedData data: Data) throws -> Data
+ public static func decompress(data: Data) throws -> Data
- compressedData
+ data
Decompressed data.
diff --git a/docs/Classes/TarContainer.html b/docs/Classes/TarContainer.html index bbf3179b..32af50ed 100644 --- a/docs/Classes/TarContainer.html +++ b/docs/Classes/TarContainer.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -176,7 +176,7 @@ -
Provides function which opens TAR archives (containers).
+Provides open function for TAR containers.
@@ -188,9 +188,9 @@
-
-
- open(containerData:)
+
+
+ open(container:)
Undocumented
+Processes TAR container and returns an array of ContainerEntries (which are actually TarEntries).
Important
+The order of entries is defined by TAR container and, +particularly, by a creator of a given TAR container. +It is likely that directories will be encountered earlier than files stored in those directories, +but one SHOULD NOT rely on any particular order.
+ +Throws
+TarError, which may indicate that either container is damaged or it might not be TAR container at all.
Swift
-public class TarContainer: Container
+ public static func open(container data: Data) throws -> [ContainerEntry]
+
+ container
+
+ |
+
+
+
+ TAR container’s data. + |
+
Array of TarEntry as an array of ContainerEntry.
@@ -176,7 +176,7 @@ -
Represents either a file or directory entry inside TAR archive.
+Represents either a file or directory entry in TAR container.
@@ -198,7 +198,7 @@Undocumented
+True, if an entry is a directory.
-
-
- mode
-
- Undocumented
- -Swift
-public class TarEntry: ContainerEntry
-
-
-
-
- ownerID
-
- Undocumented
- -Swift
-public class TarEntry: ContainerEntry
-
-
-
-
- groupID
-
- Undocumented
- -Swift
-public class TarEntry: ContainerEntry
-
- Undocumented
+Size of the data associated with the entry.
+
+
+ mode
+
+ File mode.
+ +Swift
+public let mode: Int?
+
+
+
+
+ ownerID
+
+ Owner’s ID.
+ +Swift
+public private(set) var ownerID: Int?
+
+
+
+
+ groupID
+
+ Owner’s group ID.
+ +Swift
+public private(set) var groupID: Int?
+
+ Undocumented
+The most recent modification time of the original file or directory.
Undocumented
+Type of entry.
Undocumented
+Owner’s user name.
Undocumented
+Owner’s group name.
Undocumented
+The most recent access time of the original file or directory (PAX only).
Undocumented
+Name of the character set used to encode entry’s data (PAX only).
Undocumented
+Comment associated with the entry (PAX only).
Undocumented
+Path to linked entry (PAX only).
Undocumented
+Other entries from PAX extended headers.
Swift
-public class TarEntry: ContainerEntry
+ public private(set) var unknownExtendedHeaderEntries: [String: String] = [:]
Returns data associated with this entry.
-Note
- ReturnedData object with the size of 0 can either indicate that the entry is an empty file
-or it is a directory.
-
-
@@ -170,7 +170,13 @@
Undocumented Represents a type of an entry. Undocumented Normal file. Swift Undocumented Hard linked entry. Swift Undocumented Symbolically linked entry. Swift Undocumented Character special file. Swift Undocumented Block special file. Swift Undocumented Directory. Swift Undocumented FIFO special file. Swift Undocumented Contiguous file. Swift Undocumented PAX global extended header. (Should not be encountered separately). Swift Undocumented PAX local extended header. (Should not be encountered separately). Swift Undocumented Either unknown type, vendor specific or reserved value. SwiftEntryType
-
+
+ public enum EntryType: StringDeclaration
+
+
+ case normal = "0"Declaration
+
+
+ case hardLink = "1"Declaration
+
+
+ case symbolicLink = "2"Declaration
+
+
+ case characterSpecial = "3"Declaration
+
+
+ case blockSpecial = "4"Declaration
+
+
+ case directory = "5"Declaration
+
+
+ case fifo = "6"Declaration
+
+
+ case contiguous = "7"Declaration
+
+
+ case globalExtendedHeader = "g"Declaration
+
+
+ case localExtendedHeader = "x"Declaration
+
+
+ case vendorUnknownOrReserved
@@ -172,7 +172,7 @@
-
-
- unarchive(archiveData:)
+
+
+ unarchive(archive:)
Unarchives xz archive stored in archiveData.
Unarchives XZ archive.
-If data passed is not actually a xz archive, XZError will be thrown.
-If filters other than LZMA2 are used in archive then XZError.wrongFilterID will be thrown.
If data passed is not actually XZ archive, XZError will be thrown.
+Particularly, if filters other than LZMA2 are used in archive,
+then XZError.wrongFilter will be thrown.
If data inside the archive is not actually compressed with LZMA2,
-LZMAError or LZMA2Error will be thrown.
If an error happens during LZMA2 decompression,
+then LZMAError or LZMA2Error will be thrown.
Throws
-LZMAError, LZMA2Error or XZError depending on the type of inconsistency in data.
-It may indicate that either the data is damaged or it might not be compressed with xz or LZMA(2) at all.
LZMAError, LZMA2Error or XZError depending on the type of the problem.
+It may indicate that either the archive is damaged or it might not be compressed with XZ or LZMA(2) at all.
Swift
-public static func unarchive(archiveData data: Data) throws -> Data
+ public static func unarchive(archive data: Data) throws -> Data
- archiveData
+ archive
Data compressed with xz.
+Data archived using XZ format.
Unarchived data.
@@ -176,7 +176,7 @@ -
Provides function which opens ZIP archives (containers).
+Provides open function for ZIP containers.
@@ -188,9 +188,9 @@
-
-
- open(containerData:)
+
+
+ open(container:)
Processes ZIP archive (container) and returns an array of ContainerEntries (which are actually ZipEntries).
-First member of a tuple is entry’s name, second member is entry’s data.
Processes ZIP container and returns an array of ContainerEntries (which are actually ZipEntries).
Important
-The order of entries is defined by ZIP archive and, particularly, creator of given ZIP container. +
The order of entries is defined by ZIP container and, +particularly, by a creator of a 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.
+but one SHOULD NOT rely on any particular order.Throws
ZipError or any other error associated with compression type,
-depending on the type of inconsistency in data.
-It may indicate that either the container is damaged or it might not be ZIP container at all.
Swift
-public static func open(containerData: Data) throws -> [ContainerEntry]
+ public static func open(container data: Data) throws -> [ContainerEntry]
- containerData
+ container
Data of ZIP container.
+ZIP container’s data.
Array of pairs ZipEntries as an array of ContainerEntries.
Array of ZipEntry as an array of ContainerEntry.
@@ -176,7 +176,7 @@ -
Represents either a file or directory entry inside ZIP archive.
+Represents either a file or directory entry in ZIP container.
@@ -210,7 +210,7 @@ @@ -240,7 +240,7 @@ @@ -258,7 +258,7 @@File or directory attributes related to the file system of archive’s creator.
+File or directory attributes related to the file system of the container’s creator.
Undocumented
+Size of the data associated with the entry.
True, if an entry is likely to be a directory. -Particularly, it is true if size of data is 0 and last character of entry’s name is ‘/’.
+True, if an entry is a directory. +For MS-DOS and UNIX-like container creator’s OS, the result is based on ‘external file attributes’. +Otherwise, it is true if size of data is 0 AND last character of entry’s name is ‘/’.
Returns data associated with this entry.
-Note
-Returned Data object with the size of 0 can either indicate that the entry is an empty file
-or it is a directory.
Throws
-ZipError or any other error associated with compression type,
-depending on the type of inconsistency in data.
-An error can indicate that the container is damaged.
ZipError or any other error associated with compression type,
+depending on the type of the problem. An error can indicate that container is damaged.
@@ -172,11 +172,11 @@
Provides unarchive function for Zlib archives.
+Provides unarchive and archive functions for Zlib archives.
@@ -188,9 +188,9 @@
-
-
- unarchive(archiveData:)
+
+
+ unarchive(archive:)
Unarchives Zlib archive stored in archiveData.
Unarchives Zlib archive.
-If data passed is not actually a zlib archive, ZlibError will be thrown.
If data passed is not actually a Zlib archive, ZlibError will be thrown.
If data inside the archive is not actually compressed with DEFLATE algorithm, DeflateError will be thrown.
If data in archive is not actually compressed with Deflate algorithm, DeflateError will be thrown.
Note
This function is specification compliant.
@@ -210,8 +210,9 @@Throws
-DeflateError or ZlibError depending on the type of inconsistency in data.
-It may indicate that either the data is damaged or it might not be compressed with zlib or DEFLATE at all.
DeflateError or ZlibError depending on the type of the problem.
+It may indicate that either archive is damaged or
+it might not be archived with Zlib or compressed with Deflate at all.
Swift
-public static func unarchive(archiveData data: Data) throws -> Data
+ public static func unarchive(archive data: Data) throws -> Data
- archiveData
+ archive
Data compressed with zlib.
+Data archived with Zlib.
Unarchived data.
Archives data into Zlib archive. Data will be also compressed with DEFLTATE algorithm.
-It will be specified in archive’s header that the compressor used slowest DEFLATE algorithm.
Archives data into Zlib archive.
+Data will be also compressed with Deflate algorithm.
+It will also be specified in archive’s header that the compressor used the slowest Deflate algorithm.
If during compression something goes wrong DeflateError will be thrown.
Data object with resulting archive.
+Resulting archive’s data.
@@ -191,16 +191,8 @@
Error happened during LZMA2 decompression.
-It may indicate that either the data is damaged or it might not be compressed with LZMA2 at all. Represents an error, which happened during LZMA2 decompression.
+It may indicate that either data is damaged or it might not be compressed with LZMA2 at all. Error happened during unarchiving gzip archive.
-It may indicate that either the data is damaged or it might not be gzip archive at all. Represents an error, which happened during processing GZip archive.
+It may indicate that either archive is damaged or it might not be GZip archive at all.
-
+ wrongProperties: reserved bits of LZMA2 properties byte weren’t zero.wrongDictionarySize: dictionary size was greater than 2^32.wrongControlByte: unsupported value of LZMA2 packet’s control byte.wrongReset: unsupported ‘reset’ value of LZMA2 packet’s.wrongSizes: size of compressed or decompressed data wasn’t the same as specified in LZMA2 packet.
-
+ wrongMagic: first two bytes of archive were not 31 and 139.wrongCompressionMethod: unsupported compression method (not 8 aka Deflate).wrongFlags: unsupported flags (reserved flags weren’t 0).wrongHeaderCRC: computed Cyclic Redundancy Check of archive’s header
- didn’t match the archive’s value.wrongCRC: computed Cyclic Redundancy Check of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.wrongISize: size of uncompressed data modulo 2^32 didn’t match the archive’s value.
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.Represents an error, which happened during processing ZIP container. +It may indicate that either container is damaged or it might not be ZIP container at all.
See moreError happened during LZMA decompression. -It may indicate that either the data is damaged or it might not be compressed with LZMA at all.
- -wrongProperties: unsupported LZMA properties (greater than 225).rangeDecoderInitError: unable to initialize RangedDecoder.exceededUncompressedSize: the number of uncompressed bytes reached amount specified by archive
-while decoding wasn’t finished.windowIsEmpty: unable to repeat bytes because there is nothing to repeat.rangeDecoderFinishError: range decoder was in a bad state when finish marker was reached.repeatWillExceed: unable to repeat bytes because the number of bytes to repeat is greater
-than the amount bytes that is left to decode.notEnoughToRepeat: unable to repeat bytes because the amount of already decoded bytes is smaller
-than the repeat length.Represents an error, which happened during LZMA decompression. +It may indicate that either data is damaged or it might not be compressed with LZMA at all.
See moreError happened during unarchiving Zlib archive. -It may indicate that either the data is damaged or it might not be Zlib archive at all.
- -wrongCompressionMethod: unsupported compression method (not 8).wrongCompressionInfo: unsupported compression info (greater than 7).wrongFcheck: first two bytes were inconsistent with each other.wrongCompressionLevel: unsupported compression level (not 0, 1, 2 or 3).WrongAdler32: computed Adler-32 checksum of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.Represents an error, which happened during processing Zlib archive. +It may indicate that either archive is damaged or it might not be Zlib archive at all.
See moreError happened during deflate decompression. -It may indicate that either the data is damaged or it might not be compressed with DEFLATE at all.
- -wrongUncompressedBlockLengths: length and nlength bytes of uncompressed block were not compatible.wrongBlockType: unsupported block type (not 0, 1 or 2).wrongSymbol: unsupported Huffman tree’s symbol.symbolNotFound: symbol from input data was not found in Huffman tree.Represents an error, which happened during Deflate compression or decompression. +It may indicate that either the data is damaged or it might not be compressed with Deflate at all.
See moreError happened during bzip2 decompression. -It may indicate that either the data is damaged or it might not be compressed with BZip2 at all.
- -wrongMagic: unsupported magic number (not 0x425a).wrongCompressionMethod: unsupported compression method (not type ‘h’).wrongBlockSize: unsupported block size (not ‘0’ — ‘9’).wrongBlockType: unsupported block type (not ‘pi’ or ‘sqrt(pi)’).randomizedBlock: block is randomized; this is not supported.wrongHuffmanGroups: unsupported number of Huffman tables/groups (not between 2 and 6).wrongSelector: unsupported selector (greater than total number of Huffman groups).wrongHuffmanLengthCode: unsupported code for Huffman length (not between 0 and 20).symbolNotFound: symbol from input data was not found in Huffman tree.wrongCRC: computed Cyclic Redundancy Check of uncompressed data didn’t match the archive’s value.Represents an error, which happened during BZip2 decompression. +It may indicate that either data is damaged or it might not be compressed with BZip2 at all.
See moreError happened during processing TAR archive (container). -It may indicate that either the data is damaged or it might not be TAR archive (container) at all.
- -error: error description.Represents an error, which happened during processing TAR container. +It may indicate that either container is damaged or it might not be TAR container at all.
See moreError 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).fieldReservedValue: value of one of archive’s special field
-(in block, index, header or footer) had reserved value.wrongInfoCRC: incorrect value of one of archive’s special field (in block, index, header or footer).wrongFilterID: unsupported value of filter ID (not LZMA2’s 0x21).checkTypeSHA256: checksum’s type was SHA-256.wrongDataSize: size of compressed or decompressed data wasn’t the same as specified in block.wrongCheck: computed checksum of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.wrongPadding: unsupported padding of one of structures in the archive.multiByteIntegerError: error happened during reading of one of so called ‘multi-byte’ numbers.Represents an error, which happened during unarchiving XZ archive. +It may indicate that either archive is damaged or it might not be XZ archive at all.
See more@@ -176,21 +176,8 @@ -
Error happened during bzip2 decompression. -It may indicate that either the data is damaged or it might not be compressed with BZip2 at all.
- -wrongMagic: unsupported magic number (not 0x425a).wrongCompressionMethod: unsupported compression method (not type ‘h’).wrongBlockSize: unsupported block size (not ‘0’ — ‘9’).wrongBlockType: unsupported block type (not ‘pi’ or ‘sqrt(pi)’).randomizedBlock: block is randomized; this is not supported.wrongHuffmanGroups: unsupported number of Huffman tables/groups (not between 2 and 6).wrongSelector: unsupported selector (greater than total number of Huffman groups).wrongHuffmanLengthCode: unsupported code for Huffman length (not between 0 and 20).symbolNotFound: symbol from input data was not found in Huffman tree.wrongCRC: computed Cyclic Redundancy Check of uncompressed data didn’t match the archive’s value.Represents an error, which happened during BZip2 decompression. +It may indicate that either data is damaged or it might not be compressed with BZip2 at all.
@@ -212,7 +199,7 @@ It may indicate that either the data is damaged or it might not be compressed wiMagic number was not 0x425a.
+‘Magic’ number is not 0x425a.
Compression method was not type ‘h’ (not Huffman).
+Compression method is not type ‘h’ (not Huffman).
Unknown block size (not from ‘0’ to ‘9’).
+Unsupported block size (not from ‘0’ to ‘9’).
Unknown block type (was neither ‘pi’ nor ‘sqrt(pi)’).
+Unsupported block type (is neither ‘pi’ nor ‘sqrt(pi)’).
Selector was greater than total number of Huffman tables/groups.
+Selector is greater than the total number of Huffman tables/groups.
Symbol was not found in Huffman tree.
+Symbol wasn’t found in Huffman tree.
Computed CRC of uncompressed data didn’t match the value stored in the archive. -Associated value contains already decompressed data.
+Computed checksum of uncompressed data doesn’t match the value stored in archive. +Associated value of the error contains already decompressed data.
@@ -176,15 +176,8 @@ -
Error happened during deflate decompression. -It may indicate that either the data is damaged or it might not be compressed with DEFLATE at all.
- -wrongUncompressedBlockLengths: length and nlength bytes of uncompressed block were not compatible.wrongBlockType: unsupported block type (not 0, 1 or 2).wrongSymbol: unsupported Huffman tree’s symbol.symbolNotFound: symbol from input data was not found in Huffman tree.Represents an error, which happened during Deflate compression or decompression. +It may indicate that either the data is damaged or it might not be compressed with Deflate at all.
@@ -206,7 +199,7 @@ It may indicate that either the data is damaged or it might not be compressed wiUncompressed block’ length and nlength bytes were not compatible.
Uncompressed block’s length and nlength bytes isn’t consistent with each other.
Unknown block type (not from 0 to 2).
+Unknown block type (not 0, 1 or 2).
Symbol was not found in Huffman tree.
+Symbol wasn’t found in Huffman tree.
@@ -176,19 +176,8 @@ -
Error happened during unarchiving gzip archive. -It may indicate that either the data is damaged or it might not be gzip archive at all.
- -wrongMagic: first two bytes of archive were not 31 and 139.wrongCompressionMethod: unsupported compression method (not 8 aka Deflate).wrongFlags: unsupported flags (reserved flags weren’t 0).wrongHeaderCRC: computed Cyclic Redundancy Check of archive’s header
- didn’t match the archive’s value.wrongCRC: computed Cyclic Redundancy Check of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.wrongISize: size of uncompressed data modulo 2^32 didn’t match the archive’s value.Represents an error, which happened during processing GZip archive. +It may indicate that either archive is damaged or it might not be GZip archive at all.
@@ -210,7 +199,7 @@ Associated value contains already decompressed data.First two bytes of archive were not 31 and 139.
+First two bytes (‘magic’ number) of archive isn’t 31 and 139.
Compression method was other than 8 which is the only supported one.
+Compression method used in archive is different from Deflate, which is the only supported one.
Reserved flags bits were not equal to 0.
+One of the reserved fields in archive has an unexpected value, which can also mean (apart from damaged archive), +that archive uses a newer version of GZip format.
Computed CRC of header didn’t match the value stored in the archive.
+Computed CRC of archive’s header doesn’t match the value stored in archive.
Computed CRC of uncompressed data didn’t match the value stored in the archive. -Associated value contains already decompressed data.
+Computed checksum of uncompressed data doesn’t match the value stored in archive. +Associated value of the error contains already decompressed data.
Computed isize didn’t match the value stored in the archive.
+Computed ‘isize’ didn’t match the value stored in the archive.
+
+
+ cannotEncodeISOLatin1
+
+ Either specified file name or comment cannot be encoded using ISO Latin-1 encoding.
+ +Swift
+case cannotEncodeISOLatin1
+
+ @@ -176,16 +176,8 @@
Error happened during LZMA2 decompression. -It may indicate that either the data is damaged or it might not be compressed with LZMA2 at all.
- -wrongProperties: reserved bits of LZMA2 properties byte weren’t zero.wrongDictionarySize: dictionary size was greater than 2^32.wrongControlByte: unsupported value of LZMA2 packet’s control byte.wrongReset: unsupported ‘reset’ value of LZMA2 packet’s.wrongSizes: size of compressed or decompressed data wasn’t the same as specified in LZMA2 packet.Represents an error, which happened during LZMA2 decompression. +It may indicate that either data is damaged or it might not be compressed with LZMA2 at all.
@@ -207,7 +199,7 @@ It may indicate that either the data is damaged or it might not be compressed wiReserved bits of LZMA2 properties byte were not equal to zero.
+Reserved bits of LZMA2 properties’ byte aren’t equal to zero.
Dictionary size was too big.
+Dictionary size is too big.
Unknown reset instruction encounetered in LZMA2 packet.
+Unknown reset instruction encountered in LZMA2 packet.
Either size of decompressed data was not equal to specified one in LZMA2 packet or -amount of compressed data read was different from the one stored in LZMA2 packet.
+Either size of decompressed data isn’t equal to the one specified in LZMA2 packet or +amount of compressed data read is different from the one stored in LZMA2 packet.
@@ -176,21 +176,8 @@ -
Error happened during LZMA decompression. -It may indicate that either the data is damaged or it might not be compressed with LZMA at all.
- -wrongProperties: unsupported LZMA properties (greater than 225).rangeDecoderInitError: unable to initialize RangedDecoder.exceededUncompressedSize: the number of uncompressed bytes reached amount specified by archive
-while decoding wasn’t finished.windowIsEmpty: unable to repeat bytes because there is nothing to repeat.rangeDecoderFinishError: range decoder was in a bad state when finish marker was reached.repeatWillExceed: unable to repeat bytes because the number of bytes to repeat is greater
-than the amount bytes that is left to decode.notEnoughToRepeat: unable to repeat bytes because the amount of already decoded bytes is smaller
-than the repeat length.Represents an error, which happened during LZMA decompression. +It may indicate that either data is damaged or it might not be compressed with LZMA at all.
@@ -212,7 +199,7 @@ than the repeat length.Properties byte was greater than 225.
+Properties’ byte is greater than 225.
The number of uncompressed bytes hit limit in the middle of decoding.
+Size of uncompressed data hit specified limit in the middle of decoding.
+
+
+ decoderIsNotInitialised
+
+ LZMADecoder wasn’t properly initialized before decoding data.
+ +Swift
+case decoderIsNotInitialised
+
+ @@ -176,12 +176,8 @@
Error happened during processing TAR archive (container). -It may indicate that either the data is damaged or it might not be TAR archive (container) at all.
- -error: error description.Represents an error, which happened during processing TAR container. +It may indicate that either container is damaged or it might not be TAR container at all.
@@ -203,19 +199,19 @@ It may indicate that either the data is damaged or it might not be TAR archive (Undocumented
+Size of data is too small, even to contain only one header.
Swift
-public enum TarError: Error
+ case tooSmallFileIsPassed
Undocumented
+Failed to process a field as a number.
Swift
-public enum TarError: Error
+ case fieldIsNotNumber
Undocumented
+Computed checksum of a header doesn’t match the value stored in container.
Swift
-public enum TarError: Error
+ case wrongHeaderChecksum
Undocumented
+Unsupported version of USTAR format.
Swift
-public enum TarError: Error
+ case wrongUstarVersion
Undocumented
+Entry from PAX extended header is in incorrect format.
Swift
-public enum TarError: Error
+ case wrongPaxHeaderEntry
+
+
+ notAsciiString
+
+ Failed to process a field as an ASCII string.
+ +Swift
+case notAsciiString
+
+ @@ -176,23 +176,8 @@
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).fieldReservedValue: value of one of archive’s special field
-(in block, index, header or footer) had reserved value.wrongInfoCRC: incorrect value of one of archive’s special field (in block, index, header or footer).wrongFilterID: unsupported value of filter ID (not LZMA2’s 0x21).checkTypeSHA256: checksum’s type was SHA-256.wrongDataSize: size of compressed or decompressed data wasn’t the same as specified in block.wrongCheck: computed checksum of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.wrongPadding: unsupported padding of one of structures in the archive.multiByteIntegerError: error happened during reading of one of so called ‘multi-byte’ numbers.Represents an error, which happened during unarchiving XZ archive. +It may indicate that either archive is damaged or it might not be XZ archive at all.
@@ -214,7 +199,7 @@ Associated value contains already decompressed data.Either magic number in header or footer was not equal to predefined value.
+Either ‘magic’ number in header or footer isn’t equal to a predefined value.
-
-
- wrongArchiveInfo
+
+
+ wrongFieldValue
One of special fields of archive had an incorrect value.
+One of the fields in archive has an incorrect value.
Swift
-case wrongArchiveInfo
+ case wrongFieldValue
One of special fields of archive had a reserved value.
+One of the reserved fields in archive has an unexpected value, which can also mean (apart from damaged archive), +that archive uses a newer version of XZ format.
Checksum of one of special fields of archive was incorrect.
+Checksum of one of the fields of archive doesn’t match the value stored in archive.
ID of filter(s) used in archvie was unsupported.
+Filter used in archvie is unsupported.
Type of checksum of archive was SHA-256.
+Archive uses SHA-256 checksum which is unsupported.
Either size of decompressed data was not equal to specified one in block header or -amount of compressed data read was different from the one stored in block header.
+Either size of decompressed data isn’t equal to the one specified in archive or +amount of compressed data read is different from the one stored in archive.
Computed checksum of uncompressed data didn’t match the value stored in the archive. -Associated value contains already decompressed data.
+Computed checksum of uncompressed data doesn’t match the value stored in the archive. +Associated value of the error contains already decompressed data.
Unsupported padding of a structure in the archive.
+Padding (null-bytes appended to an archive’s structure) is incorrect.
@@ -176,22 +176,8 @@ -
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.Represents an error, which happened during processing ZIP container. +It may indicate that either container is damaged or it might not be ZIP container at all.
@@ -213,7 +199,7 @@ It may indicate that either the data is damaged or it might not be ZIP archive (End of Central Directoty record was not found.
+End of Central Directoty record wasn’t found.
Wrong signature of one of ZIP container’s structures.
+Wrong signature of one of container’s structures.
Wrong either compressed or uncompressed size of a ZIP container’s entry.
+Wrong either compressed or uncompressed size of a container’s entry.
Wrong number of version needed to extract ZIP container.
+Version needed to process container is unsupported.
Archive either spanned or consists of several volumes. This feature is not supported.
+Container is either spanned or consists of several volumes. These features aren’t supported.
Entry or record is encrypted. This feature is not supported.
+Entry or record is encrypted. This feature isn’t supported.
Entry contains patched data. This feature is not supported.
+Entry contains patched data. This feature isn’t supported.
Wrong compression method of an entry.
+Entry is compressed using unsupported compression method.
Wrong local header of an entry.
+Local header of an entry is inconsistent with Central Directory.
Computed CRC32 of entry’s data didn’t match the value stored in the container. -Associated value contains extracted data.
+Computed checksum of entry’s data doesn’t match the value stored in container. +Associated value of the error contains entry’s data.
Undocumented
+Either entry’s comment or file name cannot be processed using UTF-8 encoding.
Swift
-public enum ZipError: Error
+ case wrongTextField
@@ -176,17 +176,8 @@ -
Error happened during unarchiving Zlib archive. -It may indicate that either the data is damaged or it might not be Zlib archive at all.
- -wrongCompressionMethod: unsupported compression method (not 8).wrongCompressionInfo: unsupported compression info (greater than 7).wrongFcheck: first two bytes were inconsistent with each other.wrongCompressionLevel: unsupported compression level (not 0, 1, 2 or 3).WrongAdler32: computed Adler-32 checksum of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.Represents an error, which happened during processing Zlib archive. +It may indicate that either archive is damaged or it might not be Zlib archive at all.
@@ -208,7 +199,7 @@ Associated value contains already decompressed data.Compression method was other than 8 which is the only supported one.
+Compression method used in archive is different from Deflate, which is the only supported one.
Compression info was greater than 7 which is uncompatible number 8 compression method.
+Compression info has value incompatible with Deflate compression method.
First two bytes were inconsistent with each other.
+First two bytes of archive’s flags are inconsistent with each other.
Compression level was other than 0, 1, 2, 3.
+Compression level has value, which is different from the supported ones.
Computed Adler-32 sum of uncompressed data didn’t match the value stored in the archive. -Associated value contains already decompressed data.
+Computed checksum of uncompressed data doesn’t match the value stored in archive. +Associated value of the error contains already decompressed data.
@@ -191,7 +191,7 @@
Abstract decompression algorithm class which supports decompression. A type that provides an implementation of a particular decompression algorithm. Undocumented A type that represents a container of files, directories and/or other data. Swift Undocumented A type that represents an entry from a container (file or directory) with attributes. SwiftDeclaration
+
+
+ public protocol ContainerDeclaration
+
+
+ public protocol ContainerEntry
@@ -176,7 +176,7 @@ -
Abstract archive class which supports unarchiving.
+A type that represents an archive.
@@ -188,9 +188,9 @@
-
-
- unarchive(archiveData:)
+
+
+ unarchive(archive:)
Abstract unarchive function.
+Unarchive data from the archive.
Swift
-static func unarchive(archiveData: Data) throws -> Data
+ static func unarchive(archive: Data) throws -> Data
@@ -170,7 +170,13 @@
Undocumented A type that represents a container of files, directories and/or other data.Container
-
+
+ public protocol Container
-
-
- open(containerData:)
+
+
+ open(container:)
Undocumented
+Retrieve all the entries from the container.
Swift
+static func open(container: Data) throws -> [ContainerEntry]
+
+
@@ -170,7 +170,13 @@
Undocumented A type that represents an entry from a container (file or directory) with attributes. Undocumented Retrieve name of the entry from the container. Swift Undocumented Retrieve size of the entry’s data from the container. Swift Undocumented Check if entry is a directory. Swift Undocumented Retrieve entry’s data from the container. SwiftContainerEntry
-
+
+ public protocol ContainerEntryDeclaration
+
+
+ var name: StringDeclaration
+
+
+ var size: IntDeclaration
+
+
+ var isDirectory: BoolDeclaration
+
+
+ func data() throws -> Data
@@ -176,7 +176,7 @@ -
Abstract decompression algorithm class which supports decompression.
+A type that provides an implementation of a particular decompression algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Abstract decompress function.
+Decompress data compressed with particular algorithm.
Swift
-static func decompress(compressedData: Data) throws -> Data
+ static func decompress(data: Data) throws -> Data
@@ -191,7 +191,7 @@
A structure which provides information about gzip archive. Represents a GZip archive’s header. A structure which provides information about zlib archive. Represents a Zlib archive’s header.
@@ -176,7 +176,7 @@ -
A structure which provides information about gzip archive.
+Represents a GZip archive’s header.
@@ -198,7 +198,7 @@Supported compression methods in gzip archive.
+Supported compression methods in GZip archive.
See moreType of file system on which gzip archive was created.
+Type of file system on which GZip archive was created.
See moreCompression method of archive. Always equals to .deflate.
Compression method of archive. Currently, always equals to .deflate.
The most recent modification time of the original file. If set to 0 (default value == unset), then nil.
+The most recent modification time of the original file.
+If corresponding archive’s field is set to 0, which means that no time was specified,
+then this property is nil.
Type of file system on which compression took place.
+Type of file system on which archivation took place.
-
-
- originalFileName
+
+
+ fileName
Name of the original file.
+Name of the original file. If archive doesn’t contain file’s name, then nil.
Swift
-public let originalFileName: String?
+ public let fileName: String?
Comment inside the archive.
+Comment stored in archive. If archive doesn’t contain any comment, then nil.
-
-
- init(archiveData:)
+
+
+ isTextFile
Initializes the structure with the values of first ‘member’ in gzip archive presented in archiveData.
Check if file is likely to be text file or ASCII-file.
-If data passed is not actually a gzip archive, GzipError will be thrown.
Swift
+public let isTextFile: Bool
+
+
+
+
+ init(archive:)
+
+ Initializes the structure with the values from the first ‘member’ of GZip archive.
If data passed is not actually a GZip archive, GzipError will be thrown.
Throws
-GzipError. It may indicate that either the data is damaged or
-it might not be compressed with gzip at all.
GzipError. It may indicate that either archive is damaged or
+it might not be archived with GZip at all.
Swift
-public init(archiveData: Data) throws
+ public init(archive data: Data) throws
- archiveData
+ archive
Data compressed with gzip.
+Data archived with GZip.
@@ -176,7 +176,7 @@ -
Supported compression methods in gzip archive.
+Supported compression methods in GZip archive.
@@ -210,7 +210,7 @@ diff --git a/docs/Structs/GzipHeader/FileSystemType.html b/docs/Structs/GzipHeader/FileSystemType.html index e8814fed..bf47adc2 100644 --- a/docs/Structs/GzipHeader/FileSystemType.html +++ b/docs/Structs/GzipHeader/FileSystemType.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -176,7 +176,7 @@ -
Type of file system on which gzip archive was created.
+Type of file system on which GZip archive was created.
@@ -198,7 +198,12 @@One of many Linux systems. (It seems like modern macOS systems also fall into this category).
+One of many UNIX-like systems.
+Note
+ It seems like modern macOS systems also fall into this category. + +Older Macintosh (Mac OS, OS X) systems.
+Older Macintosh systems.
File system was one of the rare systems..
+File system is one of the rare systems.
@@ -176,7 +176,7 @@ -
A structure which provides information about zlib archive.
+Represents a Zlib archive’s header.
@@ -211,7 +211,7 @@ @@ -229,7 +229,7 @@Levels of compression which can be used to create zlib archive.
+Levels of compression which can be used to create Zlib archive.
See moreCompression method of archive. Always equals to .deflate.
Compression method of archive. Currently, always equals to .deflate.
Level of compression in the archive.
+Level of compression used in archive.
Size of ‘window’: moving interval of data which was used to make the archive
+Size of ‘window’: moving interval of data which was used to make archive.
-
-
- init(archiveData:)
+
+
+ init(archive:)
Initializes the structure with the values from zlib archive presented in archiveData.
Initializes the structure with the values from Zlib archive.
If data passed is not actually a zlib archive, ZlibError will be thrown.
If data passed is not actually a Zlib archive, ZlibError will be thrown.
Throws
-ZlibError. It may indicate that either the data is damaged or
-it might not be compressed with zlib at all.
ZlibError. It may indicate that either archive is damaged or
+it might not be archived with Zlib at all.
Swift
-public init(archiveData: Data) throws
+ public init(archive data: Data) throws
- archiveData
+ archive
Data compressed with zlib.
+Data archived with zlib.
@@ -176,7 +176,7 @@ -
Levels of compression which can be used to create zlib archive.
+Levels of compression which can be used to create Zlib archive.
@@ -210,7 +210,7 @@ @@ -244,7 +244,7 @@ @@ -278,7 +278,7 @@ @@ -312,7 +312,7 @@ diff --git a/docs/Structs/ZlibHeader/CompressionMethod.html b/docs/Structs/ZlibHeader/CompressionMethod.html index c640d261..74298ff8 100644 --- a/docs/Structs/ZlibHeader/CompressionMethod.html +++ b/docs/Structs/ZlibHeader/CompressionMethod.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -210,7 +210,7 @@
diff --git a/docs/badge.svg b/docs/badge.svg index 0d836268..2606d804 100644 --- a/docs/badge.svg +++ b/docs/badge.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes.html index 7fa3b6d8..e2240f7e 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes.html @@ -22,7 +22,7 @@ SWCompression Docs - (75% documented) + (100% documented)
@@ -191,7 +191,7 @@
Provides function to decompress data, which were compressed with LZMA2 Provides decompression function for LZMA2 algorithm. Swift Provides unarchive function for GZip archives. Provides unarchive and archive functions for GZip archives. Represents either a file or directory entry inside ZIP archive. Represents either a file or directory entry in ZIP container. Provides function which opens ZIP archives (containers). Provides open function for ZIP containers. Provides function to decompress data, which were compressed with LZMA Provides decompression function for LZMA algorithm. Provides unarchive function for Zlib archives. Provides unarchive and archive functions for Zlib archives. Provides function to decompress data, which were compressed with DEFLATE. Provides compression and decompression functions for Deflate algorithm. Swift Provides function to decompress data, which were compressed using BZip2. Provides decompression function for BZip2 algorithm. Swift Represents either a file or directory entry inside TAR archive. Represents either a file or directory entry in TAR container. Provides function which opens TAR archives (containers). Provides open function for TAR containers.Declaration
+ public final class LZMA2: DecompressionAlgorithmpublic class LZMA2: DecompressionAlgorithmDeclaration
Declaration
Declaration
Declaration
+ public final class Deflate: DecompressionAlgorithmpublic class Deflate: DecompressionAlgorithmDeclaration
+ public final class BZip2: DecompressionAlgorithmpublic class BZip2: DecompressionAlgorithm
@@ -172,11 +172,11 @@
public final class BZip2: DecompressionAlgorithm
+ public class BZip2: DecompressionAlgorithm
Provides function to decompress data, which were compressed using BZip2.
+Provides decompression function for BZip2 algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Decompresses compressedData with BZip2 algortihm.
Decompresses data using BZip2 algortihm.
If data passed is not actually compressed with BZip2, BZip2Error will be thrown.
If data is not actually compressed with BZip2, BZip2Error will be thrown.
Throws
-BZip2Error if unexpected byte (bit) sequence was encountered in compressedData.
-It may indicate that either the data is damaged or it might not be compressed with BZip2 at all.
BZip2Error if unexpected byte (bit) sequence was encountered in data.
+It may indicate that either data is damaged or it might not be compressed with BZip2 at all.
Swift
-public static func decompress(compressedData data: Data) throws -> Data
+ public static func decompress(data: Data) throws -> Data
- compressedData
+ data
Decompressed data.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/Deflate.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/Deflate.html index 48b672aa..50211aec 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/Deflate.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/Deflate.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -172,11 +172,11 @@
public final class Deflate: DecompressionAlgorithm
+ public class Deflate: DecompressionAlgorithm
Provides function to decompress data, which were compressed with DEFLATE.
+Provides compression and decompression functions for Deflate algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Decompresses compressedData with DEFLATE algortihm.
Decompresses data using Deflate algortihm.
If data passed is not actually compressed with DEFLATE, DeflateError will be thrown.
If data is not actually compressed with Deflate, DeflateError will be thrown.
Note
+This function is specification compliant.
+ +Throws
-DeflateError if unexpected byte (bit) sequence was encountered in compressedData.
-It may indicate that either the data is damaged or it might not be compressed with DEFLATE at all.
DeflateError if unexpected byte (bit) sequence was encountered in data.
+It may indicate that either data is damaged or it might not be compressed with Deflate at all.
Swift
-public static func decompress(compressedData data: Data) throws -> Data
+ public static func decompress(data: Data) throws -> Data
- compressedData
+ data
Data compressed with DEFLATE.
+Data compressed with Deflate.
Decompressed data.
Compresses data with DEFLATE algortihm.
Compresses data with Deflate algortihm.
If during compression something goes wrong DeflateError will be thrown.
Note
- Currently, SWCompression creates only one block for all data +Currently, SWCompression creates only one block for all data and the block can either be uncompressed or compressed with static Huffman encoding. -Uncompressed block is created if amount of data provided is less than 3 bytes and -static Huffman is used in all other cases. +Choice of one block type or the other depends on bytes’ statistics of data. +However, if data size is greater than 65535 (the maximum value stored in 2 bytes), +then static Huffman block will be created.
+
+ data
+
+ |
+
+
+
+ Data to compress. + |
+
@@ -172,11 +172,11 @@
Provides unarchive function for GZip archives.
+Provides unarchive and archive functions for GZip archives.
@@ -188,9 +188,9 @@
-
-
- unarchive(archiveData:)
+
+
+ unarchive(archive:)
Unarchives gzip archive stored in archiveData.
Unarchives GZip archive.
-If data passed is not actually a gzip archive, GzipError will be thrown.
If data passed is not actually a GZip archive, GzipError will be thrown.
If data inside the archive is not actually compressed with DEFLATE algorithm, DeflateError will be thrown.
If data in archive is not actually compressed with Deflate algorithm, DeflateError will be thrown.
Note
This function is specification compliant.
@@ -210,8 +210,9 @@Throws
-DeflateError or GzipError depending on the type of inconsistency in data.
-It may indicate that either the data is damaged or it might not be compressed with gzip or DEFLATE at all.
DeflateError or GzipError depending on the type of the problem.
+It may indicate that either archive is damaged or
+it might not be archived with GZip or compressed with Deflate at all.
Swift
-public static func unarchive(archiveData data: Data) throws -> Data
+ public static func unarchive(archive data: Data) throws -> Data
- archiveData
+ archive
Data compressed with gzip.
+Data archived with GZip.
Unarchived data.
-
-
- archive(data:)
+
+
+ archive(data:comment:fileName:writeHeaderCRC:isTextFile:osType:modificationTime:)
Archives data into GZip archive. Data will be also compressed with DEFLTATE algorithm.
-Fields in the header of the resulting archive will be set to default values
-(i.e. no mtime, no flags, no file name, unknown OS type).
-It will be also specified that the compressor used slowest DEFLATE algorithm.
Archives data into GZip archive, using various specified options.
+Data will be also compressed with Deflate algorithm.
+It will be also specified in archive’s header that the compressor used the slowest Deflate algorithm.
If during compression something goes wrong DeflateError will be thrown.
If during compression something goes wrong DeflateError will be thrown.
+If either fileName or comment cannot be encoded with ISO Latin-1 encoding,
+then GzipError.cannotEncodeISOLatin1 will be thrown.
Note
This function is specification compliant.
@@ -279,7 +281,7 @@ It will be also specified that the compressor used slowest DEFLATE algorithm.Throws
-DeflateError if an error was encountered during compression.
DeflateError or GzipError.cannotEncodeISOLatin1 depending on the type of of the problem.
Swift
-public static func archive(data: Data) throws -> Data
+ public static func archive(data: Data, comment: String? = nil, fileName: String? = nil,
+ writeHeaderCRC: Bool = false, isTextFile: Bool = false,
+ osType: GzipHeader.FileSystemType? = nil, modificationTime: Date? = nil) throws -> Data
+ comment
+
+ Additional comment, which will be stored as a separate field in archive.
+
+ fileName
+
+ Name of the file which will be archived.
+
+ writeHeaderCRC
+
+ Set to true, if you want to store consistency check for archive’s header.
+
+ isTextFile
+
+ Set to true, if the file which will be archived is text file or ASCII-file.
+
+ osType
+
+ Type of the system on which this archive will be created.
+
+ modificationTime
+
+ Last time the file was modified.
+Data object with resulting archive.
+Resulting archive’s data.
@@ -172,11 +172,11 @@
public final class LZMA: DecompressionAlgorithm
+ public class LZMA: DecompressionAlgorithm
Provides function to decompress data, which were compressed with LZMA
+Provides decompression function for LZMA algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Decompresses compressedData with LZMA algortihm.
Decompresses data using LZMA algortihm.
If data passed is not actually compressed with LZMA, LZMAError will be thrown.
If data is not actually compressed with LZMA, LZMAError will be thrown.
Throws
-LZMAError if unexpected byte (bit) sequence was encountered in compressedData.
-It may indicate that either the data is damaged or it might not be compressed with LZMA at all.
LZMAError if unexpected byte (bit) sequence was encountered in data.
+It may indicate that either data is damaged or it might not be compressed with LZMA at all.
Swift
-public static func decompress(compressedData data: Data) throws -> Data
+ public static func decompress(data: Data) throws -> Data
- compressedData
+ data
Decompressed data.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA2.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA2.html index 644475ed..3b9cce92 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA2.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA2.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -172,11 +172,11 @@
public final class LZMA2: DecompressionAlgorithm
+ public class LZMA2: DecompressionAlgorithm
Provides function to decompress data, which were compressed with LZMA2
+Provides decompression function for LZMA2 algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Decompresses compressedData with LZMA2 algortihm. LZMA2 is a modification of LZMA.
Decompresses data using LZMA2 algortihm.
If data passed is not actually compressed with LZMA2, LZMA2Error or LZMAError will be thrown.
If data is not actually compressed with LZMA2, LZMAError or LZMA2Error will be thrown.
Throws
-LZMA2Error or LZMAError if unexpected byte (bit) sequence was encountered in compressedData.
-It may indicate that either the data is damaged or it might not be compressed with LZMA2 at all.
LZMAError or LZMA2Error if unexpected byte (bit) sequence was encountered in data.
+It may indicate that either data is damaged or it might not be compressed with LZMA2 at all.
Swift
-public static func decompress(compressedData data: Data) throws -> Data
+ public static func decompress(data: Data) throws -> Data
- compressedData
+ data
Decompressed data.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/TarContainer.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/TarContainer.html index bbf3179b..32af50ed 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/TarContainer.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/TarContainer.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -176,7 +176,7 @@ -
Provides function which opens TAR archives (containers).
+Provides open function for TAR containers.
@@ -188,9 +188,9 @@
-
-
- open(containerData:)
+
+
+ open(container:)
Undocumented
+Processes TAR container and returns an array of ContainerEntries (which are actually TarEntries).
Important
+The order of entries is defined by TAR container and, +particularly, by a creator of a given TAR container. +It is likely that directories will be encountered earlier than files stored in those directories, +but one SHOULD NOT rely on any particular order.
+ +Throws
+TarError, which may indicate that either container is damaged or it might not be TAR container at all.
Swift
-public class TarContainer: Container
+ public static func open(container data: Data) throws -> [ContainerEntry]
+
+ container
+
+ |
+
+
+
+ TAR container’s data. + |
+
Array of TarEntry as an array of ContainerEntry.
@@ -176,7 +176,7 @@ -
Represents either a file or directory entry inside TAR archive.
+Represents either a file or directory entry in TAR container.
@@ -198,7 +198,7 @@Undocumented
+True, if an entry is a directory.
-
-
- mode
-
- Undocumented
- -Swift
-public class TarEntry: ContainerEntry
-
-
-
-
- ownerID
-
- Undocumented
- -Swift
-public class TarEntry: ContainerEntry
-
-
-
-
- groupID
-
- Undocumented
- -Swift
-public class TarEntry: ContainerEntry
-
- Undocumented
+Size of the data associated with the entry.
+
+
+ mode
+
+ File mode.
+ +Swift
+public let mode: Int?
+
+
+
+
+ ownerID
+
+ Owner’s ID.
+ +Swift
+public private(set) var ownerID: Int?
+
+
+
+
+ groupID
+
+ Owner’s group ID.
+ +Swift
+public private(set) var groupID: Int?
+
+ Undocumented
+The most recent modification time of the original file or directory.
Undocumented
+Type of entry.
Undocumented
+Owner’s user name.
Undocumented
+Owner’s group name.
Undocumented
+The most recent access time of the original file or directory (PAX only).
Undocumented
+Name of the character set used to encode entry’s data (PAX only).
Undocumented
+Comment associated with the entry (PAX only).
Undocumented
+Path to linked entry (PAX only).
Undocumented
+Other entries from PAX extended headers.
Swift
-public class TarEntry: ContainerEntry
+ public private(set) var unknownExtendedHeaderEntries: [String: String] = [:]
Returns data associated with this entry.
-Note
- ReturnedData object with the size of 0 can either indicate that the entry is an empty file
-or it is a directory.
-
-
@@ -170,7 +170,13 @@
Undocumented Represents a type of an entry. Undocumented Normal file. Swift Undocumented Hard linked entry. Swift Undocumented Symbolically linked entry. Swift Undocumented Character special file. Swift Undocumented Block special file. Swift Undocumented Directory. Swift Undocumented FIFO special file. Swift Undocumented Contiguous file. Swift Undocumented PAX global extended header. (Should not be encountered separately). Swift Undocumented PAX local extended header. (Should not be encountered separately). Swift Undocumented Either unknown type, vendor specific or reserved value. SwiftEntryType
-
+
+ public enum EntryType: StringDeclaration
+
+
+ case normal = "0"Declaration
+
+
+ case hardLink = "1"Declaration
+
+
+ case symbolicLink = "2"Declaration
+
+
+ case characterSpecial = "3"Declaration
+
+
+ case blockSpecial = "4"Declaration
+
+
+ case directory = "5"Declaration
+
+
+ case fifo = "6"Declaration
+
+
+ case contiguous = "7"Declaration
+
+
+ case globalExtendedHeader = "g"Declaration
+
+
+ case localExtendedHeader = "x"Declaration
+
+
+ case vendorUnknownOrReserved
@@ -172,7 +172,7 @@
-
-
- unarchive(archiveData:)
+
+
+ unarchive(archive:)
Unarchives xz archive stored in archiveData.
Unarchives XZ archive.
-If data passed is not actually a xz archive, XZError will be thrown.
-If filters other than LZMA2 are used in archive then XZError.wrongFilterID will be thrown.
If data passed is not actually XZ archive, XZError will be thrown.
+Particularly, if filters other than LZMA2 are used in archive,
+then XZError.wrongFilter will be thrown.
If data inside the archive is not actually compressed with LZMA2,
-LZMAError or LZMA2Error will be thrown.
If an error happens during LZMA2 decompression,
+then LZMAError or LZMA2Error will be thrown.
Throws
-LZMAError, LZMA2Error or XZError depending on the type of inconsistency in data.
-It may indicate that either the data is damaged or it might not be compressed with xz or LZMA(2) at all.
LZMAError, LZMA2Error or XZError depending on the type of the problem.
+It may indicate that either the archive is damaged or it might not be compressed with XZ or LZMA(2) at all.
Swift
-public static func unarchive(archiveData data: Data) throws -> Data
+ public static func unarchive(archive data: Data) throws -> Data
- archiveData
+ archive
Data compressed with xz.
+Data archived using XZ format.
Unarchived data.
@@ -176,7 +176,7 @@ -
Provides function which opens ZIP archives (containers).
+Provides open function for ZIP containers.
@@ -188,9 +188,9 @@
-
-
- open(containerData:)
+
+
+ open(container:)
Processes ZIP archive (container) and returns an array of ContainerEntries (which are actually ZipEntries).
-First member of a tuple is entry’s name, second member is entry’s data.
Processes ZIP container and returns an array of ContainerEntries (which are actually ZipEntries).
Important
-The order of entries is defined by ZIP archive and, particularly, creator of given ZIP container. +
The order of entries is defined by ZIP container and, +particularly, by a creator of a 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.
+but one SHOULD NOT rely on any particular order.Throws
ZipError or any other error associated with compression type,
-depending on the type of inconsistency in data.
-It may indicate that either the container is damaged or it might not be ZIP container at all.
Swift
-public static func open(containerData: Data) throws -> [ContainerEntry]
+ public static func open(container data: Data) throws -> [ContainerEntry]
- containerData
+ container
Data of ZIP container.
+ZIP container’s data.
Array of pairs ZipEntries as an array of ContainerEntries.
Array of ZipEntry as an array of ContainerEntry.
@@ -176,7 +176,7 @@ -
Represents either a file or directory entry inside ZIP archive.
+Represents either a file or directory entry in ZIP container.
@@ -210,7 +210,7 @@ @@ -240,7 +240,7 @@ @@ -258,7 +258,7 @@File or directory attributes related to the file system of archive’s creator.
+File or directory attributes related to the file system of the container’s creator.
Undocumented
+Size of the data associated with the entry.
True, if an entry is likely to be a directory. -Particularly, it is true if size of data is 0 and last character of entry’s name is ‘/’.
+True, if an entry is a directory. +For MS-DOS and UNIX-like container creator’s OS, the result is based on ‘external file attributes’. +Otherwise, it is true if size of data is 0 AND last character of entry’s name is ‘/’.
Returns data associated with this entry.
-Note
-Returned Data object with the size of 0 can either indicate that the entry is an empty file
-or it is a directory.
Throws
-ZipError or any other error associated with compression type,
-depending on the type of inconsistency in data.
-An error can indicate that the container is damaged.
ZipError or any other error associated with compression type,
+depending on the type of the problem. An error can indicate that container is damaged.
@@ -172,11 +172,11 @@
Provides unarchive function for Zlib archives.
+Provides unarchive and archive functions for Zlib archives.
@@ -188,9 +188,9 @@
-
-
- unarchive(archiveData:)
+
+
+ unarchive(archive:)
Unarchives Zlib archive stored in archiveData.
Unarchives Zlib archive.
-If data passed is not actually a zlib archive, ZlibError will be thrown.
If data passed is not actually a Zlib archive, ZlibError will be thrown.
If data inside the archive is not actually compressed with DEFLATE algorithm, DeflateError will be thrown.
If data in archive is not actually compressed with Deflate algorithm, DeflateError will be thrown.
Note
This function is specification compliant.
@@ -210,8 +210,9 @@Throws
-DeflateError or ZlibError depending on the type of inconsistency in data.
-It may indicate that either the data is damaged or it might not be compressed with zlib or DEFLATE at all.
DeflateError or ZlibError depending on the type of the problem.
+It may indicate that either archive is damaged or
+it might not be archived with Zlib or compressed with Deflate at all.
Swift
-public static func unarchive(archiveData data: Data) throws -> Data
+ public static func unarchive(archive data: Data) throws -> Data
- archiveData
+ archive
Data compressed with zlib.
+Data archived with Zlib.
Unarchived data.
Archives data into Zlib archive. Data will be also compressed with DEFLTATE algorithm.
-It will be specified in archive’s header that the compressor used slowest DEFLATE algorithm.
Archives data into Zlib archive.
+Data will be also compressed with Deflate algorithm.
+It will also be specified in archive’s header that the compressor used the slowest Deflate algorithm.
If during compression something goes wrong DeflateError will be thrown.
Data object with resulting archive.
+Resulting archive’s data.
@@ -191,16 +191,8 @@
Error happened during LZMA2 decompression.
-It may indicate that either the data is damaged or it might not be compressed with LZMA2 at all. Represents an error, which happened during LZMA2 decompression.
+It may indicate that either data is damaged or it might not be compressed with LZMA2 at all. Error happened during unarchiving gzip archive.
-It may indicate that either the data is damaged or it might not be gzip archive at all. Represents an error, which happened during processing GZip archive.
+It may indicate that either archive is damaged or it might not be GZip archive at all.
-
+ wrongProperties: reserved bits of LZMA2 properties byte weren’t zero.wrongDictionarySize: dictionary size was greater than 2^32.wrongControlByte: unsupported value of LZMA2 packet’s control byte.wrongReset: unsupported ‘reset’ value of LZMA2 packet’s.wrongSizes: size of compressed or decompressed data wasn’t the same as specified in LZMA2 packet.
-
+ wrongMagic: first two bytes of archive were not 31 and 139.wrongCompressionMethod: unsupported compression method (not 8 aka Deflate).wrongFlags: unsupported flags (reserved flags weren’t 0).wrongHeaderCRC: computed Cyclic Redundancy Check of archive’s header
- didn’t match the archive’s value.wrongCRC: computed Cyclic Redundancy Check of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.wrongISize: size of uncompressed data modulo 2^32 didn’t match the archive’s value.
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.Represents an error, which happened during processing ZIP container. +It may indicate that either container is damaged or it might not be ZIP container at all.
See moreError happened during LZMA decompression. -It may indicate that either the data is damaged or it might not be compressed with LZMA at all.
- -wrongProperties: unsupported LZMA properties (greater than 225).rangeDecoderInitError: unable to initialize RangedDecoder.exceededUncompressedSize: the number of uncompressed bytes reached amount specified by archive
-while decoding wasn’t finished.windowIsEmpty: unable to repeat bytes because there is nothing to repeat.rangeDecoderFinishError: range decoder was in a bad state when finish marker was reached.repeatWillExceed: unable to repeat bytes because the number of bytes to repeat is greater
-than the amount bytes that is left to decode.notEnoughToRepeat: unable to repeat bytes because the amount of already decoded bytes is smaller
-than the repeat length.Represents an error, which happened during LZMA decompression. +It may indicate that either data is damaged or it might not be compressed with LZMA at all.
See moreError happened during unarchiving Zlib archive. -It may indicate that either the data is damaged or it might not be Zlib archive at all.
- -wrongCompressionMethod: unsupported compression method (not 8).wrongCompressionInfo: unsupported compression info (greater than 7).wrongFcheck: first two bytes were inconsistent with each other.wrongCompressionLevel: unsupported compression level (not 0, 1, 2 or 3).WrongAdler32: computed Adler-32 checksum of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.Represents an error, which happened during processing Zlib archive. +It may indicate that either archive is damaged or it might not be Zlib archive at all.
See moreError happened during deflate decompression. -It may indicate that either the data is damaged or it might not be compressed with DEFLATE at all.
- -wrongUncompressedBlockLengths: length and nlength bytes of uncompressed block were not compatible.wrongBlockType: unsupported block type (not 0, 1 or 2).wrongSymbol: unsupported Huffman tree’s symbol.symbolNotFound: symbol from input data was not found in Huffman tree.Represents an error, which happened during Deflate compression or decompression. +It may indicate that either the data is damaged or it might not be compressed with Deflate at all.
See moreError happened during bzip2 decompression. -It may indicate that either the data is damaged or it might not be compressed with BZip2 at all.
- -wrongMagic: unsupported magic number (not 0x425a).wrongCompressionMethod: unsupported compression method (not type ‘h’).wrongBlockSize: unsupported block size (not ‘0’ — ‘9’).wrongBlockType: unsupported block type (not ‘pi’ or ‘sqrt(pi)’).randomizedBlock: block is randomized; this is not supported.wrongHuffmanGroups: unsupported number of Huffman tables/groups (not between 2 and 6).wrongSelector: unsupported selector (greater than total number of Huffman groups).wrongHuffmanLengthCode: unsupported code for Huffman length (not between 0 and 20).symbolNotFound: symbol from input data was not found in Huffman tree.wrongCRC: computed Cyclic Redundancy Check of uncompressed data didn’t match the archive’s value.Represents an error, which happened during BZip2 decompression. +It may indicate that either data is damaged or it might not be compressed with BZip2 at all.
See moreError happened during processing TAR archive (container). -It may indicate that either the data is damaged or it might not be TAR archive (container) at all.
- -error: error description.Represents an error, which happened during processing TAR container. +It may indicate that either container is damaged or it might not be TAR container at all.
See moreError 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).fieldReservedValue: value of one of archive’s special field
-(in block, index, header or footer) had reserved value.wrongInfoCRC: incorrect value of one of archive’s special field (in block, index, header or footer).wrongFilterID: unsupported value of filter ID (not LZMA2’s 0x21).checkTypeSHA256: checksum’s type was SHA-256.wrongDataSize: size of compressed or decompressed data wasn’t the same as specified in block.wrongCheck: computed checksum of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.wrongPadding: unsupported padding of one of structures in the archive.multiByteIntegerError: error happened during reading of one of so called ‘multi-byte’ numbers.Represents an error, which happened during unarchiving XZ archive. +It may indicate that either archive is damaged or it might not be XZ archive at all.
See more@@ -176,21 +176,8 @@ -
Error happened during bzip2 decompression. -It may indicate that either the data is damaged or it might not be compressed with BZip2 at all.
- -wrongMagic: unsupported magic number (not 0x425a).wrongCompressionMethod: unsupported compression method (not type ‘h’).wrongBlockSize: unsupported block size (not ‘0’ — ‘9’).wrongBlockType: unsupported block type (not ‘pi’ or ‘sqrt(pi)’).randomizedBlock: block is randomized; this is not supported.wrongHuffmanGroups: unsupported number of Huffman tables/groups (not between 2 and 6).wrongSelector: unsupported selector (greater than total number of Huffman groups).wrongHuffmanLengthCode: unsupported code for Huffman length (not between 0 and 20).symbolNotFound: symbol from input data was not found in Huffman tree.wrongCRC: computed Cyclic Redundancy Check of uncompressed data didn’t match the archive’s value.Represents an error, which happened during BZip2 decompression. +It may indicate that either data is damaged or it might not be compressed with BZip2 at all.
@@ -212,7 +199,7 @@ It may indicate that either the data is damaged or it might not be compressed wiMagic number was not 0x425a.
+‘Magic’ number is not 0x425a.
Compression method was not type ‘h’ (not Huffman).
+Compression method is not type ‘h’ (not Huffman).
Unknown block size (not from ‘0’ to ‘9’).
+Unsupported block size (not from ‘0’ to ‘9’).
Unknown block type (was neither ‘pi’ nor ‘sqrt(pi)’).
+Unsupported block type (is neither ‘pi’ nor ‘sqrt(pi)’).
Selector was greater than total number of Huffman tables/groups.
+Selector is greater than the total number of Huffman tables/groups.
Symbol was not found in Huffman tree.
+Symbol wasn’t found in Huffman tree.
Computed CRC of uncompressed data didn’t match the value stored in the archive. -Associated value contains already decompressed data.
+Computed checksum of uncompressed data doesn’t match the value stored in archive. +Associated value of the error contains already decompressed data.
@@ -176,15 +176,8 @@ -
Error happened during deflate decompression. -It may indicate that either the data is damaged or it might not be compressed with DEFLATE at all.
- -wrongUncompressedBlockLengths: length and nlength bytes of uncompressed block were not compatible.wrongBlockType: unsupported block type (not 0, 1 or 2).wrongSymbol: unsupported Huffman tree’s symbol.symbolNotFound: symbol from input data was not found in Huffman tree.Represents an error, which happened during Deflate compression or decompression. +It may indicate that either the data is damaged or it might not be compressed with Deflate at all.
@@ -206,7 +199,7 @@ It may indicate that either the data is damaged or it might not be compressed wiUncompressed block’ length and nlength bytes were not compatible.
Uncompressed block’s length and nlength bytes isn’t consistent with each other.
Unknown block type (not from 0 to 2).
+Unknown block type (not 0, 1 or 2).
Symbol was not found in Huffman tree.
+Symbol wasn’t found in Huffman tree.
@@ -176,19 +176,8 @@ -
Error happened during unarchiving gzip archive. -It may indicate that either the data is damaged or it might not be gzip archive at all.
- -wrongMagic: first two bytes of archive were not 31 and 139.wrongCompressionMethod: unsupported compression method (not 8 aka Deflate).wrongFlags: unsupported flags (reserved flags weren’t 0).wrongHeaderCRC: computed Cyclic Redundancy Check of archive’s header
- didn’t match the archive’s value.wrongCRC: computed Cyclic Redundancy Check of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.wrongISize: size of uncompressed data modulo 2^32 didn’t match the archive’s value.Represents an error, which happened during processing GZip archive. +It may indicate that either archive is damaged or it might not be GZip archive at all.
@@ -210,7 +199,7 @@ Associated value contains already decompressed data.First two bytes of archive were not 31 and 139.
+First two bytes (‘magic’ number) of archive isn’t 31 and 139.
Compression method was other than 8 which is the only supported one.
+Compression method used in archive is different from Deflate, which is the only supported one.
Reserved flags bits were not equal to 0.
+One of the reserved fields in archive has an unexpected value, which can also mean (apart from damaged archive), +that archive uses a newer version of GZip format.
Computed CRC of header didn’t match the value stored in the archive.
+Computed CRC of archive’s header doesn’t match the value stored in archive.
Computed CRC of uncompressed data didn’t match the value stored in the archive. -Associated value contains already decompressed data.
+Computed checksum of uncompressed data doesn’t match the value stored in archive. +Associated value of the error contains already decompressed data.
Computed isize didn’t match the value stored in the archive.
+Computed ‘isize’ didn’t match the value stored in the archive.
+
+
+ cannotEncodeISOLatin1
+
+ Either specified file name or comment cannot be encoded using ISO Latin-1 encoding.
+ +Swift
+case cannotEncodeISOLatin1
+
+ @@ -176,16 +176,8 @@
Error happened during LZMA2 decompression. -It may indicate that either the data is damaged or it might not be compressed with LZMA2 at all.
- -wrongProperties: reserved bits of LZMA2 properties byte weren’t zero.wrongDictionarySize: dictionary size was greater than 2^32.wrongControlByte: unsupported value of LZMA2 packet’s control byte.wrongReset: unsupported ‘reset’ value of LZMA2 packet’s.wrongSizes: size of compressed or decompressed data wasn’t the same as specified in LZMA2 packet.Represents an error, which happened during LZMA2 decompression. +It may indicate that either data is damaged or it might not be compressed with LZMA2 at all.
@@ -207,7 +199,7 @@ It may indicate that either the data is damaged or it might not be compressed wiReserved bits of LZMA2 properties byte were not equal to zero.
+Reserved bits of LZMA2 properties’ byte aren’t equal to zero.
Dictionary size was too big.
+Dictionary size is too big.
Unknown reset instruction encounetered in LZMA2 packet.
+Unknown reset instruction encountered in LZMA2 packet.
Either size of decompressed data was not equal to specified one in LZMA2 packet or -amount of compressed data read was different from the one stored in LZMA2 packet.
+Either size of decompressed data isn’t equal to the one specified in LZMA2 packet or +amount of compressed data read is different from the one stored in LZMA2 packet.
@@ -176,21 +176,8 @@ -
Error happened during LZMA decompression. -It may indicate that either the data is damaged or it might not be compressed with LZMA at all.
- -wrongProperties: unsupported LZMA properties (greater than 225).rangeDecoderInitError: unable to initialize RangedDecoder.exceededUncompressedSize: the number of uncompressed bytes reached amount specified by archive
-while decoding wasn’t finished.windowIsEmpty: unable to repeat bytes because there is nothing to repeat.rangeDecoderFinishError: range decoder was in a bad state when finish marker was reached.repeatWillExceed: unable to repeat bytes because the number of bytes to repeat is greater
-than the amount bytes that is left to decode.notEnoughToRepeat: unable to repeat bytes because the amount of already decoded bytes is smaller
-than the repeat length.Represents an error, which happened during LZMA decompression. +It may indicate that either data is damaged or it might not be compressed with LZMA at all.
@@ -212,7 +199,7 @@ than the repeat length.Properties byte was greater than 225.
+Properties’ byte is greater than 225.
The number of uncompressed bytes hit limit in the middle of decoding.
+Size of uncompressed data hit specified limit in the middle of decoding.
+
+
+ decoderIsNotInitialised
+
+ LZMADecoder wasn’t properly initialized before decoding data.
+ +Swift
+case decoderIsNotInitialised
+
+ @@ -176,12 +176,8 @@
Error happened during processing TAR archive (container). -It may indicate that either the data is damaged or it might not be TAR archive (container) at all.
- -error: error description.Represents an error, which happened during processing TAR container. +It may indicate that either container is damaged or it might not be TAR container at all.
@@ -203,19 +199,19 @@ It may indicate that either the data is damaged or it might not be TAR archive (Undocumented
+Size of data is too small, even to contain only one header.
Swift
-public enum TarError: Error
+ case tooSmallFileIsPassed
Undocumented
+Failed to process a field as a number.
Swift
-public enum TarError: Error
+ case fieldIsNotNumber
Undocumented
+Computed checksum of a header doesn’t match the value stored in container.
Swift
-public enum TarError: Error
+ case wrongHeaderChecksum
Undocumented
+Unsupported version of USTAR format.
Swift
-public enum TarError: Error
+ case wrongUstarVersion
Undocumented
+Entry from PAX extended header is in incorrect format.
Swift
-public enum TarError: Error
+ case wrongPaxHeaderEntry
+
+
+ notAsciiString
+
+ Failed to process a field as an ASCII string.
+ +Swift
+case notAsciiString
+
+ @@ -176,23 +176,8 @@
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).fieldReservedValue: value of one of archive’s special field
-(in block, index, header or footer) had reserved value.wrongInfoCRC: incorrect value of one of archive’s special field (in block, index, header or footer).wrongFilterID: unsupported value of filter ID (not LZMA2’s 0x21).checkTypeSHA256: checksum’s type was SHA-256.wrongDataSize: size of compressed or decompressed data wasn’t the same as specified in block.wrongCheck: computed checksum of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.wrongPadding: unsupported padding of one of structures in the archive.multiByteIntegerError: error happened during reading of one of so called ‘multi-byte’ numbers.Represents an error, which happened during unarchiving XZ archive. +It may indicate that either archive is damaged or it might not be XZ archive at all.
@@ -214,7 +199,7 @@ Associated value contains already decompressed data.Either magic number in header or footer was not equal to predefined value.
+Either ‘magic’ number in header or footer isn’t equal to a predefined value.
-
-
- wrongArchiveInfo
+
+
+ wrongFieldValue
One of special fields of archive had an incorrect value.
+One of the fields in archive has an incorrect value.
Swift
-case wrongArchiveInfo
+ case wrongFieldValue
One of special fields of archive had a reserved value.
+One of the reserved fields in archive has an unexpected value, which can also mean (apart from damaged archive), +that archive uses a newer version of XZ format.
Checksum of one of special fields of archive was incorrect.
+Checksum of one of the fields of archive doesn’t match the value stored in archive.
ID of filter(s) used in archvie was unsupported.
+Filter used in archvie is unsupported.
Type of checksum of archive was SHA-256.
+Archive uses SHA-256 checksum which is unsupported.
Either size of decompressed data was not equal to specified one in block header or -amount of compressed data read was different from the one stored in block header.
+Either size of decompressed data isn’t equal to the one specified in archive or +amount of compressed data read is different from the one stored in archive.
Computed checksum of uncompressed data didn’t match the value stored in the archive. -Associated value contains already decompressed data.
+Computed checksum of uncompressed data doesn’t match the value stored in the archive. +Associated value of the error contains already decompressed data.
Unsupported padding of a structure in the archive.
+Padding (null-bytes appended to an archive’s structure) is incorrect.
@@ -176,22 +176,8 @@ -
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.Represents an error, which happened during processing ZIP container. +It may indicate that either container is damaged or it might not be ZIP container at all.
@@ -213,7 +199,7 @@ It may indicate that either the data is damaged or it might not be ZIP archive (End of Central Directoty record was not found.
+End of Central Directoty record wasn’t found.
Wrong signature of one of ZIP container’s structures.
+Wrong signature of one of container’s structures.
Wrong either compressed or uncompressed size of a ZIP container’s entry.
+Wrong either compressed or uncompressed size of a container’s entry.
Wrong number of version needed to extract ZIP container.
+Version needed to process container is unsupported.
Archive either spanned or consists of several volumes. This feature is not supported.
+Container is either spanned or consists of several volumes. These features aren’t supported.
Entry or record is encrypted. This feature is not supported.
+Entry or record is encrypted. This feature isn’t supported.
Entry contains patched data. This feature is not supported.
+Entry contains patched data. This feature isn’t supported.
Wrong compression method of an entry.
+Entry is compressed using unsupported compression method.
Wrong local header of an entry.
+Local header of an entry is inconsistent with Central Directory.
Computed CRC32 of entry’s data didn’t match the value stored in the container. -Associated value contains extracted data.
+Computed checksum of entry’s data doesn’t match the value stored in container. +Associated value of the error contains entry’s data.
Undocumented
+Either entry’s comment or file name cannot be processed using UTF-8 encoding.
Swift
-public enum ZipError: Error
+ case wrongTextField
@@ -176,17 +176,8 @@ -
Error happened during unarchiving Zlib archive. -It may indicate that either the data is damaged or it might not be Zlib archive at all.
- -wrongCompressionMethod: unsupported compression method (not 8).wrongCompressionInfo: unsupported compression info (greater than 7).wrongFcheck: first two bytes were inconsistent with each other.wrongCompressionLevel: unsupported compression level (not 0, 1, 2 or 3).WrongAdler32: computed Adler-32 checksum of uncompressed data didn’t match the archive’s value.
-Associated value contains already decompressed data.Represents an error, which happened during processing Zlib archive. +It may indicate that either archive is damaged or it might not be Zlib archive at all.
@@ -208,7 +199,7 @@ Associated value contains already decompressed data.Compression method was other than 8 which is the only supported one.
+Compression method used in archive is different from Deflate, which is the only supported one.
Compression info was greater than 7 which is uncompatible number 8 compression method.
+Compression info has value incompatible with Deflate compression method.
First two bytes were inconsistent with each other.
+First two bytes of archive’s flags are inconsistent with each other.
Compression level was other than 0, 1, 2, 3.
+Compression level has value, which is different from the supported ones.
Computed Adler-32 sum of uncompressed data didn’t match the value stored in the archive. -Associated value contains already decompressed data.
+Computed checksum of uncompressed data doesn’t match the value stored in archive. +Associated value of the error contains already decompressed data.
@@ -191,7 +191,7 @@
Abstract decompression algorithm class which supports decompression. A type that provides an implementation of a particular decompression algorithm. Undocumented A type that represents a container of files, directories and/or other data. Swift Undocumented A type that represents an entry from a container (file or directory) with attributes. SwiftDeclaration
+
+
+ public protocol ContainerDeclaration
+
+
+ public protocol ContainerEntry
@@ -176,7 +176,7 @@ -
Abstract archive class which supports unarchiving.
+A type that represents an archive.
@@ -188,9 +188,9 @@
-
-
- unarchive(archiveData:)
+
+
+ unarchive(archive:)
Abstract unarchive function.
+Unarchive data from the archive.
Swift
-static func unarchive(archiveData: Data) throws -> Data
+ static func unarchive(archive: Data) throws -> Data
@@ -170,7 +170,13 @@
Undocumented A type that represents a container of files, directories and/or other data.Container
-
+
+ public protocol Container
-
-
- open(containerData:)
+
+
+ open(container:)
Undocumented
+Retrieve all the entries from the container.
Swift
+static func open(container: Data) throws -> [ContainerEntry]
+
+
@@ -170,7 +170,13 @@
Undocumented A type that represents an entry from a container (file or directory) with attributes. Undocumented Retrieve name of the entry from the container. Swift Undocumented Retrieve size of the entry’s data from the container. Swift Undocumented Check if entry is a directory. Swift Undocumented Retrieve entry’s data from the container. SwiftContainerEntry
-
+
+ public protocol ContainerEntryDeclaration
+
+
+ var name: StringDeclaration
+
+
+ var size: IntDeclaration
+
+
+ var isDirectory: BoolDeclaration
+
+
+ func data() throws -> Data
@@ -176,7 +176,7 @@ -
Abstract decompression algorithm class which supports decompression.
+A type that provides an implementation of a particular decompression algorithm.
@@ -188,9 +188,9 @@
-
-
- decompress(compressedData:)
+
+
+ decompress(data:)
Abstract decompress function.
+Decompress data compressed with particular algorithm.
Swift
-static func decompress(compressedData: Data) throws -> Data
+ static func decompress(data: Data) throws -> Data
@@ -191,7 +191,7 @@
A structure which provides information about gzip archive. Represents a GZip archive’s header. A structure which provides information about zlib archive. Represents a Zlib archive’s header.
@@ -176,7 +176,7 @@ -
A structure which provides information about gzip archive.
+Represents a GZip archive’s header.
@@ -198,7 +198,7 @@Supported compression methods in gzip archive.
+Supported compression methods in GZip archive.
See moreType of file system on which gzip archive was created.
+Type of file system on which GZip archive was created.
See moreCompression method of archive. Always equals to .deflate.
Compression method of archive. Currently, always equals to .deflate.
The most recent modification time of the original file. If set to 0 (default value == unset), then nil.
+The most recent modification time of the original file.
+If corresponding archive’s field is set to 0, which means that no time was specified,
+then this property is nil.
Type of file system on which compression took place.
+Type of file system on which archivation took place.
-
-
- originalFileName
+
+
+ fileName
Name of the original file.
+Name of the original file. If archive doesn’t contain file’s name, then nil.
Swift
-public let originalFileName: String?
+ public let fileName: String?
Comment inside the archive.
+Comment stored in archive. If archive doesn’t contain any comment, then nil.
-
-
- init(archiveData:)
+
+
+ isTextFile
Initializes the structure with the values of first ‘member’ in gzip archive presented in archiveData.
Check if file is likely to be text file or ASCII-file.
-If data passed is not actually a gzip archive, GzipError will be thrown.
Swift
+public let isTextFile: Bool
+
+
+
+
+ init(archive:)
+
+ Initializes the structure with the values from the first ‘member’ of GZip archive.
If data passed is not actually a GZip archive, GzipError will be thrown.
Throws
-GzipError. It may indicate that either the data is damaged or
-it might not be compressed with gzip at all.
GzipError. It may indicate that either archive is damaged or
+it might not be archived with GZip at all.
Swift
-public init(archiveData: Data) throws
+ public init(archive data: Data) throws
- archiveData
+ archive
Data compressed with gzip.
+Data archived with GZip.
@@ -176,7 +176,7 @@ -
Supported compression methods in gzip archive.
+Supported compression methods in GZip archive.
@@ -210,7 +210,7 @@ diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/GzipHeader/FileSystemType.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/GzipHeader/FileSystemType.html index e8814fed..bf47adc2 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/GzipHeader/FileSystemType.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/GzipHeader/FileSystemType.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -176,7 +176,7 @@ -
Type of file system on which gzip archive was created.
+Type of file system on which GZip archive was created.
@@ -198,7 +198,12 @@One of many Linux systems. (It seems like modern macOS systems also fall into this category).
+One of many UNIX-like systems.
+Note
+ It seems like modern macOS systems also fall into this category. + +Older Macintosh (Mac OS, OS X) systems.
+Older Macintosh systems.
File system was one of the rare systems..
+File system is one of the rare systems.
@@ -176,7 +176,7 @@ -
A structure which provides information about zlib archive.
+Represents a Zlib archive’s header.
@@ -211,7 +211,7 @@ @@ -229,7 +229,7 @@Levels of compression which can be used to create zlib archive.
+Levels of compression which can be used to create Zlib archive.
See moreCompression method of archive. Always equals to .deflate.
Compression method of archive. Currently, always equals to .deflate.
Level of compression in the archive.
+Level of compression used in archive.
Size of ‘window’: moving interval of data which was used to make the archive
+Size of ‘window’: moving interval of data which was used to make archive.
-
-
- init(archiveData:)
+
+
+ init(archive:)
Initializes the structure with the values from zlib archive presented in archiveData.
Initializes the structure with the values from Zlib archive.
If data passed is not actually a zlib archive, ZlibError will be thrown.
If data passed is not actually a Zlib archive, ZlibError will be thrown.
Throws
-ZlibError. It may indicate that either the data is damaged or
-it might not be compressed with zlib at all.
ZlibError. It may indicate that either archive is damaged or
+it might not be archived with Zlib at all.
Swift
-public init(archiveData: Data) throws
+ public init(archive data: Data) throws
- archiveData
+ archive
Data compressed with zlib.
+Data archived with zlib.
@@ -176,7 +176,7 @@ -
Levels of compression which can be used to create zlib archive.
+Levels of compression which can be used to create Zlib archive.
@@ -210,7 +210,7 @@ @@ -244,7 +244,7 @@ @@ -278,7 +278,7 @@ @@ -312,7 +312,7 @@ diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionMethod.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionMethod.html index c640d261..74298ff8 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionMethod.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionMethod.html @@ -23,7 +23,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -210,7 +210,7 @@
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/index.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/index.html index 2d2a68f9..acd592b9 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/index.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/index.html @@ -22,7 +22,7 @@ SWCompression Docs - (75% documented) + (100% documented)@@ -180,7 +180,7 @@
-A framework which contains implementations of (de)compression algorithms.
+A framework which contains implementations of (de)compression algorithms and functions which parse various archives and containers.
Developed with Swift.
By the way, it seems like GZip, Deflate and Zlib implementations are specification compliant.
@@ -246,6 +247,8 @@ Available subspecs:You can add some or all of them instead of pod 'SWCompression'
To complete installation, run pod install.
Note: Actually, there is one more subspec (SWCompression/Common) but it does not contain any end-user functions. It is included in every other subspec and should not be specified directly in Podfile.
+Note: Actually, there is one more subspec (SWCompression/Common) but it does not contain any end-user functions. +It is included in every other subspec and should not be specified directly in Podfile.
Add to your Cartfile github "tsolomko/SWCompression".
More info about SPM you can find at Swift Package Manager’s Documentation.
+Deflate is a default compression method of ZIP containers.
+ +This means, that if you use CocoaPods, when installing SWCompression/ZIP it will install SWCompression/Deflate as a dependency.
+ +However, ZIP containers can also support LZMA and BZip2. +So if you want to enable them in your Pods configuration you need to include SWCompression/LZMA and/or SWCompression/Deflate.
+ +If you use Carthage or Swift Package Manager you always have the full package, +and ZIP will be built with both BZip2 and LZMA support.
If you’d like to decompress deflated
data just use:
let data = try! Data(contentsOf: URL(fileURLWithPath: "path/to/file"),
options: .mappedIfSafe)
-let decompressedData = try? Deflate.decompress(compressedData: data)
+let decompressedData = try? Deflate.decompress(data: data)
Note: It is highly recommended to specify Data.ReadingOptions.mappedIfSafe,
-especially if you are working with large files,
-so you don’t run out of system memory.
However, it is unlikely that you will encounter deflated data outside of any archive. So, in case of GZip archive you should use:
let decompressedData = try? GzipArchive.unarchive(archiveData: data)
-One final note: every unarchive/decompress function can throw an error and +
One final note: every SWCompression function can throw an error and you are responsible for handling them.
If you look at list of available error types and their cases, -you may be frightened by their number. +
If you look at list of available error types and their cases, you may be frightened by their number.
However, most of these cases (such as XZError.WrongMagic) exist for diagnostic purposes.
Thus, you only need to handle the most common type of error for your archive/algorithm. @@ -311,7 +324,7 @@ For example:
do {
let data = try Data(contentsOf: URL(fileURLWithPath: "path/to/file"),
options: .mappedIfSafe)
- let decompressedData = XZArchive.unarchive(archiveData: data)
+ let decompressedData = XZArchive.unarchive(archive: data)
} catch let error as XZError {
<handle XZ related error here>
} catch let error {
@@ -340,7 +353,9 @@ so some difference in speed is expected.
Future plans
-- Tar unarchiving.
+- Better Deflate compression.
+- Support for additional attributes in containers.
+- 7zip containers.
- BZip2 compression.
- Something else…
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/search.json b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/search.json
index 0812255e..e6d82172 100644
--- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/search.json
+++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/search.json
@@ -1 +1 @@
-{"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel16fastestAlgorithmFMS1_S1_":{"name":"fastestAlgorithm","abstract":"Fastest algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel13fastAlgorithmFMS1_S1_":{"name":"fastAlgorithm","abstract":"Fast algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel16defaultAlgorithmFMS1_S1_":{"name":"defaultAlgorithm","abstract":"Default algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel13slowAlgorithmFMS1_S1_":{"name":"slowAlgorithm","abstract":"Slowest algorithm but with maximum compression.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionMethod.html#/s:FOV13SWCompression10ZlibHeader17CompressionMethod7deflateFMS1_S1_":{"name":"deflate","abstract":"The only one supported compression method (Deflate).
","parent_name":"CompressionMethod"},"Structs/ZlibHeader/CompressionMethod.html":{"name":"CompressionMethod","abstract":"Supported compression methods in zlib archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader/CompressionLevel.html":{"name":"CompressionLevel","abstract":"Levels of compression which can be used to create zlib archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader17compressionMethodOS0_17CompressionMethod":{"name":"compressionMethod","abstract":"Compression method of archive. Always equals to .deflate.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader16compressionLevelOS0_16CompressionLevel":{"name":"compressionLevel","abstract":"Level of compression in the archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader10windowSizeSi":{"name":"windowSize","abstract":"Size of ‘window’: moving interval of data which was used to make the archive
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:FV13SWCompression10ZlibHeadercFzT11archiveDataV10Foundation4Data_S0_":{"name":"init(archiveData:)","abstract":"Initializes the structure with the values from zlib archive presented in archiveData.
","parent_name":"ZlibHeader"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType4unixFMS1_S1_":{"name":"unix","abstract":"One of many Linux systems. (It seems like modern macOS systems also fall into this category).
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType9macintoshFMS1_S1_":{"name":"macintosh","abstract":"Older Macintosh (Mac OS, OS X) systems.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType4ntfsFMS1_S1_":{"name":"ntfs","abstract":"File system used in Microsoft™®© Windows™®©.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType7unknownFMS1_S1_":{"name":"unknown","abstract":"File system was unknown to the archiver.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType5otherFMS1_S1_":{"name":"other","abstract":"File system was one of the rare systems..
","parent_name":"FileSystemType"},"Structs/GzipHeader/CompressionMethod.html#/s:FOV13SWCompression10GzipHeader17CompressionMethod7deflateFMS1_S1_":{"name":"deflate","abstract":"The only one supported compression method (Deflate).
","parent_name":"CompressionMethod"},"Structs/GzipHeader/CompressionMethod.html":{"name":"CompressionMethod","abstract":"Supported compression methods in gzip archive.
","parent_name":"GzipHeader"},"Structs/GzipHeader/FileSystemType.html":{"name":"FileSystemType","abstract":"Type of file system on which gzip archive was created.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader17compressionMethodOS0_17CompressionMethod":{"name":"compressionMethod","abstract":"Compression method of archive. Always equals to .deflate.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader16modificationTimeGSqV10Foundation4Date_":{"name":"modificationTime","abstract":"The most recent modification time of the original file. If set to 0 (default value == unset), then nil.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader6osTypeOS0_14FileSystemType":{"name":"osType","abstract":"Type of file system on which compression took place.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader16originalFileNameGSqSS_":{"name":"originalFileName","abstract":"Name of the original file.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader7commentGSqSS_":{"name":"comment","abstract":"Comment inside the archive.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:FV13SWCompression10GzipHeadercFzT11archiveDataV10Foundation4Data_S0_":{"name":"init(archiveData:)","abstract":"Initializes the structure with the values of first ‘member’ in gzip archive presented in archiveData.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html":{"name":"GzipHeader","abstract":"A structure which provides information about gzip archive.
"},"Structs/ZlibHeader.html":{"name":"ZlibHeader","abstract":"A structure which provides information about zlib archive.
"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry4nameSS":{"name":"name","abstract":"Undocumented
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry4sizeSi":{"name":"size","abstract":"Undocumented
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry11isDirectorySb":{"name":"isDirectory","abstract":"Undocumented
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:FP13SWCompression14ContainerEntry4dataFzT_V10Foundation4Data":{"name":"data()","abstract":"Undocumented
","parent_name":"ContainerEntry"},"Protocols/Container.html#/s:ZFP13SWCompression9Container4openFzT13containerDataV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(containerData:)","abstract":"Undocumented
","parent_name":"Container"},"Protocols/DecompressionAlgorithm.html#/s:ZFP13SWCompression22DecompressionAlgorithm10decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"Abstract decompress function.
","parent_name":"DecompressionAlgorithm"},"Protocols/Archive.html#/s:ZFP13SWCompression7Archive9unarchiveFzT11archiveDataV10Foundation4Data_S2_":{"name":"unarchive(archiveData:)","abstract":"Abstract unarchive function.
","parent_name":"Archive"},"Protocols/Archive.html":{"name":"Archive","abstract":"Abstract archive class which supports unarchiving.
"},"Protocols/DecompressionAlgorithm.html":{"name":"DecompressionAlgorithm","abstract":"Abstract decompression algorithm class which supports decompression.
"},"Protocols/Container.html":{"name":"Container","abstract":"Undocumented
"},"Protocols/ContainerEntry.html":{"name":"ContainerEntry","abstract":"Undocumented
"},"Enums/XZError.html#/s:FO13SWCompression7XZError10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"Either magic number in header or footer was not equal to predefined value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError16wrongArchiveInfoFMS0_S0_":{"name":"wrongArchiveInfo","abstract":"One of special fields of archive had an incorrect value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError18fieldReservedValueFMS0_S0_":{"name":"fieldReservedValue","abstract":"One of special fields of archive had a reserved value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError12wrongInfoCRCFMS0_S0_":{"name":"wrongInfoCRC","abstract":"Checksum of one of special fields of archive was incorrect.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError13wrongFilterIDFMS0_S0_":{"name":"wrongFilterID","abstract":"ID of filter(s) used in archvie was unsupported.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError15checkTypeSHA256FMS0_S0_":{"name":"checkTypeSHA256","abstract":"Type of checksum of archive was SHA-256.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError13wrongDataSizeFMS0_S0_":{"name":"wrongDataSize","abstract":"Either size of decompressed data was not equal to specified one in block header or","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError10wrongCheckFMS0_FV10Foundation4DataS0_":{"name":"wrongCheck","abstract":"
Computed checksum of uncompressed data didn’t match the value stored in the archive.","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError12wrongPaddingFMS0_S0_":{"name":"wrongPadding","abstract":"
Unsupported padding of a structure in the archive.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError21multiByteIntegerErrorFMS0_S0_":{"name":"multiByteIntegerError","abstract":"Either null byte encountered or exceeded maximum amount bytes during reading multi byte number.
","parent_name":"XZError"},"Enums/TarError.html#/s:FO13SWCompression8TarError20tooSmallFileIsPassedFMS0_S0_":{"name":"tooSmallFileIsPassed","abstract":"Undocumented
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError16fieldIsNotNumberFMS0_S0_":{"name":"fieldIsNotNumber","abstract":"Undocumented
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError19wrongHeaderChecksumFMS0_S0_":{"name":"wrongHeaderChecksum","abstract":"Undocumented
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError17wrongUstarVersionFMS0_S0_":{"name":"wrongUstarVersion","abstract":"Undocumented
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError19wrongPaxHeaderEntryFMS0_S0_":{"name":"wrongPaxHeaderEntry","abstract":"Undocumented
","parent_name":"TarError"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"Magic number was not 0x425a.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method was not type ‘h’ (not Huffman).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14wrongBlockSizeFMS0_S0_":{"name":"wrongBlockSize","abstract":"Unknown block size (not from ‘0’ to ‘9’).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14wrongBlockTypeFMS0_S0_":{"name":"wrongBlockType","abstract":"Unknown block type (was neither ‘pi’ nor ‘sqrt(pi)’).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error15randomizedBlockFMS0_S0_":{"name":"randomizedBlock","abstract":"Block is randomized.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error18wrongHuffmanGroupsFMS0_S0_":{"name":"wrongHuffmanGroups","abstract":"Wrong number of Huffman tables/groups (should be between 2 and 6).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error13wrongSelectorFMS0_S0_":{"name":"wrongSelector","abstract":"Selector was greater than total number of Huffman tables/groups.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error22wrongHuffmanLengthCodeFMS0_S0_":{"name":"wrongHuffmanLengthCode","abstract":"Wrong code of Huffman length (should be between 0 and 20).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14symbolNotFoundFMS0_S0_":{"name":"symbolNotFound","abstract":"Symbol was not found in Huffman tree.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error8wrongCRCFMS0_FV10Foundation4DataS0_":{"name":"wrongCRC","abstract":"Computed CRC of uncompressed data didn’t match the value stored in the archive.","parent_name":"BZip2Error"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError29wrongUncompressedBlockLengthsFMS0_S0_":{"name":"wrongUncompressedBlockLengths","abstract":"
Uncompressed block’ length and nlength bytes were not compatible.
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError14wrongBlockTypeFMS0_S0_":{"name":"wrongBlockType","abstract":"Unknown block type (not from 0 to 2).
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError11wrongSymbolFMS0_S0_":{"name":"wrongSymbol","abstract":"Decoded symbol was found in Huffman tree but is unknown.
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError14symbolNotFoundFMS0_S0_":{"name":"symbolNotFound","abstract":"Symbol was not found in Huffman tree.
","parent_name":"DeflateError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method was other than 8 which is the only supported one.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError20wrongCompressionInfoFMS0_S0_":{"name":"wrongCompressionInfo","abstract":"Compression info was greater than 7 which is uncompatible number 8 compression method.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError11wrongFcheckFMS0_S0_":{"name":"wrongFcheck","abstract":"First two bytes were inconsistent with each other.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError21wrongCompressionLevelFMS0_S0_":{"name":"wrongCompressionLevel","abstract":"Compression level was other than 0, 1, 2, 3.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError12wrongAdler32FMS0_FV10Foundation4DataS0_":{"name":"wrongAdler32","abstract":"Computed Adler-32 sum of uncompressed data didn’t match the value stored in the archive.","parent_name":"ZlibError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError15wrongPropertiesFMS0_S0_":{"name":"wrongProperties","abstract":"
Properties byte was greater than 225.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError21rangeDecoderInitErrorFMS0_S0_":{"name":"rangeDecoderInitError","abstract":"Unable to initialize RanderDecorer.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError24exceededUncompressedSizeFMS0_S0_":{"name":"exceededUncompressedSize","abstract":"The number of uncompressed bytes hit limit in the middle of decoding.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError13windowIsEmptyFMS0_S0_":{"name":"windowIsEmpty","abstract":"Unable to perfrom repeat-distance decoding because there is nothing to repeat.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError23rangeDecoderFinishErrorFMS0_S0_":{"name":"rangeDecoderFinishError","abstract":"End of stream marker is reached, but range decoder is in incorrect state.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError16repeatWillExceedFMS0_S0_":{"name":"repeatWillExceed","abstract":"The number of bytes to repeat is greater than the amount bytes that is left to decode.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError17notEnoughToRepeatFMS0_S0_":{"name":"notEnoughToRepeat","abstract":"The amount of already decoded bytes is smaller than repeat length.
","parent_name":"LZMAError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError27notFoundCentralDirectoryEndFMS0_S0_":{"name":"notFoundCentralDirectoryEnd","abstract":"End of Central Directoty record was not found.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError14wrongSignatureFMS0_S0_":{"name":"wrongSignature","abstract":"Wrong signature of one of ZIP container’s structures.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError9wrongSizeFMS0_S0_":{"name":"wrongSize","abstract":"Wrong either compressed or uncompressed size of a ZIP container’s entry.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError12wrongVersionFMS0_S0_":{"name":"wrongVersion","abstract":"Wrong number of version needed to extract ZIP container.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError24multiVolumesNotSupportedFMS0_S0_":{"name":"multiVolumesNotSupported","abstract":"Archive either spanned or consists of several volumes. This feature is not supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError22encryptionNotSupportedFMS0_S0_":{"name":"encryptionNotSupported","abstract":"Entry or record is encrypted. This feature is not supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError20patchingNotSupportedFMS0_S0_":{"name":"patchingNotSupported","abstract":"Entry contains patched data. This feature is not supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError23compressionNotSupportedFMS0_S0_":{"name":"compressionNotSupported","abstract":"Wrong compression method of an entry.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError16wrongLocalHeaderFMS0_S0_":{"name":"wrongLocalHeader","abstract":"Wrong local header of an entry.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError10wrongCRC32FMS0_FV10Foundation4DataS0_":{"name":"wrongCRC32","abstract":"Computed CRC32 of entry’s data didn’t match the value stored in the container.","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError14wrongTextFieldFMS0_S0_":{"name":"wrongTextField","abstract":"
Undocumented
","parent_name":"ZipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"First two bytes of archive were not 31 and 139.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method was other than 8 which is the only supported one.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongFlagsFMS0_S0_":{"name":"wrongFlags","abstract":"Reserved flags bits were not equal to 0.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError14wrongHeaderCRCFMS0_S0_":{"name":"wrongHeaderCRC","abstract":"Computed CRC of header didn’t match the value stored in the archive.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError8wrongCRCFMS0_FV10Foundation4DataS0_":{"name":"wrongCRC","abstract":"Computed CRC of uncompressed data didn’t match the value stored in the archive.","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongISizeFMS0_S0_":{"name":"wrongISize","abstract":"
Computed isize didn’t match the value stored in the archive.
","parent_name":"GzipError"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error15wrongPropertiesFMS0_S0_":{"name":"wrongProperties","abstract":"Reserved bits of LZMA2 properties byte were not equal to zero.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error19wrongDictionarySizeFMS0_S0_":{"name":"wrongDictionarySize","abstract":"Dictionary size was too big.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error16wrongControlByteFMS0_S0_":{"name":"wrongControlByte","abstract":"Unknown conrol byte value of LZMA2 packet.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error10wrongResetFMS0_S0_":{"name":"wrongReset","abstract":"Unknown reset instruction encounetered in LZMA2 packet.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error10wrongSizesFMS0_S0_":{"name":"wrongSizes","abstract":"Either size of decompressed data was not equal to specified one in LZMA2 packet or","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html":{"name":"LZMA2Error","abstract":"
Error happened during LZMA2 decompression."},"Enums/GzipError.html":{"name":"GzipError","abstract":"
Error happened during unarchiving gzip archive."},"Enums/ZipError.html":{"name":"ZipError","abstract":"
Error happened during processing ZIP archive (container)."},"Enums/LZMAError.html":{"name":"LZMAError","abstract":"
Error happened during LZMA decompression."},"Enums/ZlibError.html":{"name":"ZlibError","abstract":"
Error happened during unarchiving Zlib archive."},"Enums/DeflateError.html":{"name":"DeflateError","abstract":"
Error happened during deflate decompression."},"Enums/BZip2Error.html":{"name":"BZip2Error","abstract":"
Error happened during bzip2 decompression."},"Enums/TarError.html":{"name":"TarError","abstract":"
Error happened during processing TAR archive (container)."},"Enums/XZError.html":{"name":"XZError","abstract":"
Error happened during unarchiving XZ archive."},"Classes/XZArchive.html#/s:ZFC13SWCompression9XZArchive9unarchiveFzT11archiveDataV10Foundation4Data_S2_":{"name":"unarchive(archiveData:)","abstract":"
Unarchives xz archive stored in archiveData.
","parent_name":"XZArchive"},"Classes/TarContainer.html#/s:ZFC13SWCompression12TarContainer4openFzT13containerDataV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(containerData:)","abstract":"Undocumented
","parent_name":"TarContainer"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType6normalFMS1_S1_":{"name":"normal","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType8hardLinkFMS1_S1_":{"name":"hardLink","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType12symbolicLinkFMS1_S1_":{"name":"symbolicLink","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType16characterSpecialFMS1_S1_":{"name":"characterSpecial","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType12blockSpecialFMS1_S1_":{"name":"blockSpecial","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType9directoryFMS1_S1_":{"name":"directory","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType4fifoFMS1_S1_":{"name":"fifo","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType10contiguousFMS1_S1_":{"name":"contiguous","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType20globalExtendedHeaderFMS1_S1_":{"name":"globalExtendedHeader","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType19localExtendedHeaderFMS1_S1_":{"name":"localExtendedHeader","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType23vendorUnknownOrReservedFMS1_S1_":{"name":"vendorUnknownOrReserved","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html":{"name":"EntryType","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4nameSS":{"name":"name","abstract":"Name of the file or directory.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry11isDirectorySb":{"name":"isDirectory","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4modeGSqSi_":{"name":"mode","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7ownerIDGSqSi_":{"name":"ownerID","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7groupIDGSqSi_":{"name":"groupID","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4sizeSi":{"name":"size","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry16modificationTimeV10Foundation4Date":{"name":"modificationTime","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4typeOS0_9EntryType":{"name":"type","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry13ownerUserNameGSqSS_":{"name":"ownerUserName","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry14ownerGroupNameGSqSS_":{"name":"ownerGroupName","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry10accessTimeGSqV10Foundation4Date_":{"name":"accessTime","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7charsetGSqSS_":{"name":"charset","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7commentGSqSS_":{"name":"comment","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry8linkPathGSqSS_":{"name":"linkPath","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry28unknownExtendedHeaderEntriesGVs10DictionarySSSS_":{"name":"unknownExtendedHeaderEntries","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:FC13SWCompression8TarEntry4dataFT_V10Foundation4Data":{"name":"data()","abstract":"Returns data associated with this entry.
","parent_name":"TarEntry"},"Classes/BZip2.html#/s:ZFC13SWCompression5BZip210decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"Decompresses compressedData with BZip2 algortihm.
","parent_name":"BZip2"},"Classes/Deflate.html#/s:ZFC13SWCompression7Deflate10decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"Decompresses compressedData with DEFLATE algortihm.
","parent_name":"Deflate"},"Classes/Deflate.html#/s:ZFC13SWCompression7Deflate8compressFzT4dataV10Foundation4Data_S2_":{"name":"compress(data:)","abstract":"Compresses data with DEFLATE algortihm.
","parent_name":"Deflate"},"Classes/ZlibArchive.html#/s:ZFC13SWCompression11ZlibArchive9unarchiveFzT11archiveDataV10Foundation4Data_S2_":{"name":"unarchive(archiveData:)","abstract":"Unarchives Zlib archive stored in archiveData.
","parent_name":"ZlibArchive"},"Classes/ZlibArchive.html#/s:ZFC13SWCompression11ZlibArchive7archiveFzT4dataV10Foundation4Data_S2_":{"name":"archive(data:)","abstract":"Archives data into Zlib archive. Data will be also compressed with DEFLTATE algorithm.","parent_name":"ZlibArchive"},"Classes/LZMA.html#/s:ZFC13SWCompression4LZMA10decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"
Decompresses compressedData with LZMA algortihm.
","parent_name":"LZMA"},"Classes/ZipContainer.html#/s:ZFC13SWCompression12ZipContainer4openFzT13containerDataV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(containerData:)","abstract":"Processes ZIP archive (container) and returns an array of ContainerEntries (which are actually ZipEntries).","parent_name":"ZipContainer"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry4nameSS":{"name":"name","abstract":"
Name of the file or directory.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry7commentGSqSS_":{"name":"comment","abstract":"Comment associated with the entry.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry10attributesVs6UInt32":{"name":"attributes","abstract":"File or directory attributes related to the file system of archive’s creator.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry4sizeSi":{"name":"size","abstract":"Undocumented
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry11isDirectorySb":{"name":"isDirectory","abstract":"True, if an entry is likely to be a directory.","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:FC13SWCompression8ZipEntry4dataFzT_V10Foundation4Data":{"name":"data()","abstract":"
Returns data associated with this entry.
","parent_name":"ZipEntry"},"Classes/GzipArchive.html#/s:ZFC13SWCompression11GzipArchive9unarchiveFzT11archiveDataV10Foundation4Data_S2_":{"name":"unarchive(archiveData:)","abstract":"Unarchives gzip archive stored in archiveData.
","parent_name":"GzipArchive"},"Classes/GzipArchive.html#/s:ZFC13SWCompression11GzipArchive7archiveFzT4dataV10Foundation4Data_S2_":{"name":"archive(data:)","abstract":"Archives data into GZip archive. Data will be also compressed with DEFLTATE algorithm.","parent_name":"GzipArchive"},"Classes/LZMA2.html#/s:ZFC13SWCompression5LZMA210decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"
Decompresses compressedData with LZMA2 algortihm. LZMA2 is a modification of LZMA.
","parent_name":"LZMA2"},"Classes/LZMA2.html":{"name":"LZMA2","abstract":"Provides function to decompress data, which were compressed with LZMA2
"},"Classes/GzipArchive.html":{"name":"GzipArchive","abstract":"Provides unarchive function for GZip archives.
"},"Classes/ZipEntry.html":{"name":"ZipEntry","abstract":"Represents either a file or directory entry inside ZIP archive.
"},"Classes/ZipContainer.html":{"name":"ZipContainer","abstract":"Provides function which opens ZIP archives (containers).
"},"Classes/LZMA.html":{"name":"LZMA","abstract":"Provides function to decompress data, which were compressed with LZMA
"},"Classes/ZlibArchive.html":{"name":"ZlibArchive","abstract":"Provides unarchive function for Zlib archives.
"},"Classes/Deflate.html":{"name":"Deflate","abstract":"Provides function to decompress data, which were compressed with DEFLATE.
"},"Classes/BZip2.html":{"name":"BZip2","abstract":"Provides function to decompress data, which were compressed using BZip2.
"},"Classes/TarEntry.html":{"name":"TarEntry","abstract":"Represents either a file or directory entry inside TAR archive.
"},"Classes/TarContainer.html":{"name":"TarContainer","abstract":"Provides function which opens TAR archives (containers).
"},"Classes/XZArchive.html":{"name":"XZArchive","abstract":"Provides unarchive function for XZ archives.
"},"Classes.html":{"name":"Classes","abstract":"The following classes are available globally.
"},"Enums.html":{"name":"Enums","abstract":"The following enums are available globally.
"},"Protocols.html":{"name":"Protocols","abstract":"The following protocols are available globally.
"},"Structs.html":{"name":"Structs","abstract":"The following structs are available globally.
"}}
\ No newline at end of file
+{"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel16fastestAlgorithmFMS1_S1_":{"name":"fastestAlgorithm","abstract":"Fastest algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel13fastAlgorithmFMS1_S1_":{"name":"fastAlgorithm","abstract":"Fast algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel16defaultAlgorithmFMS1_S1_":{"name":"defaultAlgorithm","abstract":"Default algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel13slowAlgorithmFMS1_S1_":{"name":"slowAlgorithm","abstract":"Slowest algorithm but with maximum compression.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionMethod.html#/s:FOV13SWCompression10ZlibHeader17CompressionMethod7deflateFMS1_S1_":{"name":"deflate","abstract":"The only one supported compression method (Deflate).
","parent_name":"CompressionMethod"},"Structs/ZlibHeader/CompressionMethod.html":{"name":"CompressionMethod","abstract":"Supported compression methods in zlib archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader/CompressionLevel.html":{"name":"CompressionLevel","abstract":"Levels of compression which can be used to create Zlib archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader17compressionMethodOS0_17CompressionMethod":{"name":"compressionMethod","abstract":"Compression method of archive. Currently, always equals to .deflate.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader16compressionLevelOS0_16CompressionLevel":{"name":"compressionLevel","abstract":"Level of compression used in archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader10windowSizeSi":{"name":"windowSize","abstract":"Size of ‘window’: moving interval of data which was used to make archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:FV13SWCompression10ZlibHeadercFzT7archiveV10Foundation4Data_S0_":{"name":"init(archive:)","abstract":"Initializes the structure with the values from Zlib archive.
","parent_name":"ZlibHeader"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType4unixFMS1_S1_":{"name":"unix","abstract":"One of many UNIX-like systems.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType9macintoshFMS1_S1_":{"name":"macintosh","abstract":"Older Macintosh systems.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType4ntfsFMS1_S1_":{"name":"ntfs","abstract":"File system used in Microsoft™®© Windows™®©.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType7unknownFMS1_S1_":{"name":"unknown","abstract":"File system was unknown to the archiver.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType5otherFMS1_S1_":{"name":"other","abstract":"File system is one of the rare systems.
","parent_name":"FileSystemType"},"Structs/GzipHeader/CompressionMethod.html#/s:FOV13SWCompression10GzipHeader17CompressionMethod7deflateFMS1_S1_":{"name":"deflate","abstract":"The only one supported compression method (Deflate).
","parent_name":"CompressionMethod"},"Structs/GzipHeader/CompressionMethod.html":{"name":"CompressionMethod","abstract":"Supported compression methods in GZip archive.
","parent_name":"GzipHeader"},"Structs/GzipHeader/FileSystemType.html":{"name":"FileSystemType","abstract":"Type of file system on which GZip archive was created.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader17compressionMethodOS0_17CompressionMethod":{"name":"compressionMethod","abstract":"Compression method of archive. Currently, always equals to .deflate.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader16modificationTimeGSqV10Foundation4Date_":{"name":"modificationTime","abstract":"The most recent modification time of the original file.","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader6osTypeOS0_14FileSystemType":{"name":"osType","abstract":"
Type of file system on which archivation took place.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader8fileNameGSqSS_":{"name":"fileName","abstract":"Name of the original file. If archive doesn’t contain file’s name, then nil.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader7commentGSqSS_":{"name":"comment","abstract":"Comment stored in archive. If archive doesn’t contain any comment, then nil.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader10isTextFileSb":{"name":"isTextFile","abstract":"Check if file is likely to be text file or ASCII-file.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:FV13SWCompression10GzipHeadercFzT7archiveV10Foundation4Data_S0_":{"name":"init(archive:)","abstract":"Initializes the structure with the values from the first ‘member’ of GZip archive.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html":{"name":"GzipHeader","abstract":"Represents a GZip archive’s header.
"},"Structs/ZlibHeader.html":{"name":"ZlibHeader","abstract":"Represents a Zlib archive’s header.
"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry4nameSS":{"name":"name","abstract":"Retrieve name of the entry from the container.
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry4sizeSi":{"name":"size","abstract":"Retrieve size of the entry’s data from the container.
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry11isDirectorySb":{"name":"isDirectory","abstract":"Check if entry is a directory.
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:FP13SWCompression14ContainerEntry4dataFzT_V10Foundation4Data":{"name":"data()","abstract":"Retrieve entry’s data from the container.
","parent_name":"ContainerEntry"},"Protocols/Container.html#/s:ZFP13SWCompression9Container4openFzT9containerV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(container:)","abstract":"Retrieve all the entries from the container.
","parent_name":"Container"},"Protocols/DecompressionAlgorithm.html#/s:ZFP13SWCompression22DecompressionAlgorithm10decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"Decompress data compressed with particular algorithm.
","parent_name":"DecompressionAlgorithm"},"Protocols/Archive.html#/s:ZFP13SWCompression7Archive9unarchiveFzT7archiveV10Foundation4Data_S2_":{"name":"unarchive(archive:)","abstract":"Unarchive data from the archive.
","parent_name":"Archive"},"Protocols/Archive.html":{"name":"Archive","abstract":"A type that represents an archive.
"},"Protocols/DecompressionAlgorithm.html":{"name":"DecompressionAlgorithm","abstract":"A type that provides an implementation of a particular decompression algorithm.
"},"Protocols/Container.html":{"name":"Container","abstract":"A type that represents a container of files, directories and/or other data.
"},"Protocols/ContainerEntry.html":{"name":"ContainerEntry","abstract":"A type that represents an entry from a container (file or directory) with attributes.
"},"Enums/XZError.html#/s:FO13SWCompression7XZError10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"Either ‘magic’ number in header or footer isn’t equal to a predefined value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError15wrongFieldValueFMS0_S0_":{"name":"wrongFieldValue","abstract":"One of the fields in archive has an incorrect value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError18fieldReservedValueFMS0_S0_":{"name":"fieldReservedValue","abstract":"One of the reserved fields in archive has an unexpected value, which can also mean (apart from damaged archive),","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError12wrongInfoCRCFMS0_S0_":{"name":"wrongInfoCRC","abstract":"
Checksum of one of the fields of archive doesn’t match the value stored in archive.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError13wrongFilterIDFMS0_S0_":{"name":"wrongFilterID","abstract":"Filter used in archvie is unsupported.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError15checkTypeSHA256FMS0_S0_":{"name":"checkTypeSHA256","abstract":"Archive uses SHA-256 checksum which is unsupported.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError13wrongDataSizeFMS0_S0_":{"name":"wrongDataSize","abstract":"Either size of decompressed data isn’t equal to the one specified in archive or","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError10wrongCheckFMS0_FV10Foundation4DataS0_":{"name":"wrongCheck","abstract":"
Computed checksum of uncompressed data doesn’t match the value stored in the archive.","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError12wrongPaddingFMS0_S0_":{"name":"wrongPadding","abstract":"
Padding (null-bytes appended to an archive’s structure) is incorrect.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError21multiByteIntegerErrorFMS0_S0_":{"name":"multiByteIntegerError","abstract":"Either null byte encountered or exceeded maximum amount bytes during reading multi byte number.
","parent_name":"XZError"},"Enums/TarError.html#/s:FO13SWCompression8TarError20tooSmallFileIsPassedFMS0_S0_":{"name":"tooSmallFileIsPassed","abstract":"Size of data is too small, even to contain only one header.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError16fieldIsNotNumberFMS0_S0_":{"name":"fieldIsNotNumber","abstract":"Failed to process a field as a number.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError19wrongHeaderChecksumFMS0_S0_":{"name":"wrongHeaderChecksum","abstract":"Computed checksum of a header doesn’t match the value stored in container.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError17wrongUstarVersionFMS0_S0_":{"name":"wrongUstarVersion","abstract":"Unsupported version of USTAR format.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError19wrongPaxHeaderEntryFMS0_S0_":{"name":"wrongPaxHeaderEntry","abstract":"Entry from PAX extended header is in incorrect format.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError14notAsciiStringFMS0_S0_":{"name":"notAsciiString","abstract":"Failed to process a field as an ASCII string.
","parent_name":"TarError"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"‘Magic’ number is not 0x425a.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method is not type ‘h’ (not Huffman).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14wrongBlockSizeFMS0_S0_":{"name":"wrongBlockSize","abstract":"Unsupported block size (not from ‘0’ to ‘9’).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14wrongBlockTypeFMS0_S0_":{"name":"wrongBlockType","abstract":"Unsupported block type (is neither ‘pi’ nor ‘sqrt(pi)’).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error15randomizedBlockFMS0_S0_":{"name":"randomizedBlock","abstract":"Block is randomized.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error18wrongHuffmanGroupsFMS0_S0_":{"name":"wrongHuffmanGroups","abstract":"Wrong number of Huffman tables/groups (should be between 2 and 6).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error13wrongSelectorFMS0_S0_":{"name":"wrongSelector","abstract":"Selector is greater than the total number of Huffman tables/groups.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error22wrongHuffmanLengthCodeFMS0_S0_":{"name":"wrongHuffmanLengthCode","abstract":"Wrong code of Huffman length (should be between 0 and 20).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14symbolNotFoundFMS0_S0_":{"name":"symbolNotFound","abstract":"Symbol wasn’t found in Huffman tree.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error8wrongCRCFMS0_FV10Foundation4DataS0_":{"name":"wrongCRC","abstract":"Computed checksum of uncompressed data doesn’t match the value stored in archive.","parent_name":"BZip2Error"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError29wrongUncompressedBlockLengthsFMS0_S0_":{"name":"wrongUncompressedBlockLengths","abstract":"
Uncompressed block’s length and nlength bytes isn’t consistent with each other.
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError14wrongBlockTypeFMS0_S0_":{"name":"wrongBlockType","abstract":"Unknown block type (not 0, 1 or 2).
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError11wrongSymbolFMS0_S0_":{"name":"wrongSymbol","abstract":"Decoded symbol was found in Huffman tree but is unknown.
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError14symbolNotFoundFMS0_S0_":{"name":"symbolNotFound","abstract":"Symbol wasn’t found in Huffman tree.
","parent_name":"DeflateError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method used in archive is different from Deflate, which is the only supported one.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError20wrongCompressionInfoFMS0_S0_":{"name":"wrongCompressionInfo","abstract":"Compression info has value incompatible with Deflate compression method.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError11wrongFcheckFMS0_S0_":{"name":"wrongFcheck","abstract":"First two bytes of archive’s flags are inconsistent with each other.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError21wrongCompressionLevelFMS0_S0_":{"name":"wrongCompressionLevel","abstract":"Compression level has value, which is different from the supported ones.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError12wrongAdler32FMS0_FV10Foundation4DataS0_":{"name":"wrongAdler32","abstract":"Computed checksum of uncompressed data doesn’t match the value stored in archive.","parent_name":"ZlibError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError15wrongPropertiesFMS0_S0_":{"name":"wrongProperties","abstract":"
Properties’ byte is greater than 225.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError21rangeDecoderInitErrorFMS0_S0_":{"name":"rangeDecoderInitError","abstract":"Unable to initialize RanderDecorer.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError24exceededUncompressedSizeFMS0_S0_":{"name":"exceededUncompressedSize","abstract":"Size of uncompressed data hit specified limit in the middle of decoding.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError13windowIsEmptyFMS0_S0_":{"name":"windowIsEmpty","abstract":"Unable to perfrom repeat-distance decoding because there is nothing to repeat.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError23rangeDecoderFinishErrorFMS0_S0_":{"name":"rangeDecoderFinishError","abstract":"End of stream marker is reached, but range decoder is in incorrect state.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError16repeatWillExceedFMS0_S0_":{"name":"repeatWillExceed","abstract":"The number of bytes to repeat is greater than the amount bytes that is left to decode.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError17notEnoughToRepeatFMS0_S0_":{"name":"notEnoughToRepeat","abstract":"The amount of already decoded bytes is smaller than repeat length.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError23decoderIsNotInitialisedFMS0_S0_":{"name":"decoderIsNotInitialised","abstract":"LZMADecoder wasn’t properly initialized before decoding data.
","parent_name":"LZMAError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError27notFoundCentralDirectoryEndFMS0_S0_":{"name":"notFoundCentralDirectoryEnd","abstract":"End of Central Directoty record wasn’t found.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError14wrongSignatureFMS0_S0_":{"name":"wrongSignature","abstract":"Wrong signature of one of container’s structures.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError9wrongSizeFMS0_S0_":{"name":"wrongSize","abstract":"Wrong either compressed or uncompressed size of a container’s entry.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError12wrongVersionFMS0_S0_":{"name":"wrongVersion","abstract":"Version needed to process container is unsupported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError24multiVolumesNotSupportedFMS0_S0_":{"name":"multiVolumesNotSupported","abstract":"Container is either spanned or consists of several volumes. These features aren’t supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError22encryptionNotSupportedFMS0_S0_":{"name":"encryptionNotSupported","abstract":"Entry or record is encrypted. This feature isn’t supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError20patchingNotSupportedFMS0_S0_":{"name":"patchingNotSupported","abstract":"Entry contains patched data. This feature isn’t supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError23compressionNotSupportedFMS0_S0_":{"name":"compressionNotSupported","abstract":"Entry is compressed using unsupported compression method.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError16wrongLocalHeaderFMS0_S0_":{"name":"wrongLocalHeader","abstract":"Local header of an entry is inconsistent with Central Directory.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError10wrongCRC32FMS0_FV10Foundation4DataS0_":{"name":"wrongCRC32","abstract":"Computed checksum of entry’s data doesn’t match the value stored in container.","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError14wrongTextFieldFMS0_S0_":{"name":"wrongTextField","abstract":"
Either entry’s comment or file name cannot be processed using UTF-8 encoding.
","parent_name":"ZipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"First two bytes (‘magic’ number) of archive isn’t 31 and 139.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method used in archive is different from Deflate, which is the only supported one.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongFlagsFMS0_S0_":{"name":"wrongFlags","abstract":"One of the reserved fields in archive has an unexpected value, which can also mean (apart from damaged archive),","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError14wrongHeaderCRCFMS0_S0_":{"name":"wrongHeaderCRC","abstract":"
Computed CRC of archive’s header doesn’t match the value stored in archive.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError8wrongCRCFMS0_FV10Foundation4DataS0_":{"name":"wrongCRC","abstract":"Computed checksum of uncompressed data doesn’t match the value stored in archive.","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongISizeFMS0_S0_":{"name":"wrongISize","abstract":"
Computed ‘isize’ didn’t match the value stored in the archive.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError21cannotEncodeISOLatin1FMS0_S0_":{"name":"cannotEncodeISOLatin1","abstract":"Either specified file name or comment cannot be encoded using ISO Latin-1 encoding.
","parent_name":"GzipError"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error15wrongPropertiesFMS0_S0_":{"name":"wrongProperties","abstract":"Reserved bits of LZMA2 properties’ byte aren’t equal to zero.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error19wrongDictionarySizeFMS0_S0_":{"name":"wrongDictionarySize","abstract":"Dictionary size is too big.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error16wrongControlByteFMS0_S0_":{"name":"wrongControlByte","abstract":"Unknown conrol byte value of LZMA2 packet.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error10wrongResetFMS0_S0_":{"name":"wrongReset","abstract":"Unknown reset instruction encountered in LZMA2 packet.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error10wrongSizesFMS0_S0_":{"name":"wrongSizes","abstract":"Either size of decompressed data isn’t equal to the one specified in LZMA2 packet or","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html":{"name":"LZMA2Error","abstract":"
Represents an error, which happened during LZMA2 decompression."},"Enums/GzipError.html":{"name":"GzipError","abstract":"
Represents an error, which happened during processing GZip archive."},"Enums/ZipError.html":{"name":"ZipError","abstract":"
Represents an error, which happened during processing ZIP container."},"Enums/LZMAError.html":{"name":"LZMAError","abstract":"
Represents an error, which happened during LZMA decompression."},"Enums/ZlibError.html":{"name":"ZlibError","abstract":"
Represents an error, which happened during processing Zlib archive."},"Enums/DeflateError.html":{"name":"DeflateError","abstract":"
Represents an error, which happened during Deflate compression or decompression."},"Enums/BZip2Error.html":{"name":"BZip2Error","abstract":"
Represents an error, which happened during BZip2 decompression."},"Enums/TarError.html":{"name":"TarError","abstract":"
Represents an error, which happened during processing TAR container."},"Enums/XZError.html":{"name":"XZError","abstract":"
Represents an error, which happened during unarchiving XZ archive."},"Classes/XZArchive.html#/s:ZFC13SWCompression9XZArchive9unarchiveFzT7archiveV10Foundation4Data_S2_":{"name":"unarchive(archive:)","abstract":"
Unarchives XZ archive.
","parent_name":"XZArchive"},"Classes/TarContainer.html#/s:ZFC13SWCompression12TarContainer4openFzT9containerV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(container:)","abstract":"Processes TAR container and returns an array of ContainerEntries (which are actually TarEntries).
","parent_name":"TarContainer"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType6normalFMS1_S1_":{"name":"normal","abstract":"Normal file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType8hardLinkFMS1_S1_":{"name":"hardLink","abstract":"Hard linked entry.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType12symbolicLinkFMS1_S1_":{"name":"symbolicLink","abstract":"Symbolically linked entry.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType16characterSpecialFMS1_S1_":{"name":"characterSpecial","abstract":"Character special file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType12blockSpecialFMS1_S1_":{"name":"blockSpecial","abstract":"Block special file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType9directoryFMS1_S1_":{"name":"directory","abstract":"Directory.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType4fifoFMS1_S1_":{"name":"fifo","abstract":"FIFO special file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType10contiguousFMS1_S1_":{"name":"contiguous","abstract":"Contiguous file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType20globalExtendedHeaderFMS1_S1_":{"name":"globalExtendedHeader","abstract":"PAX global extended header. (Should not be encountered separately).
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType19localExtendedHeaderFMS1_S1_":{"name":"localExtendedHeader","abstract":"PAX local extended header. (Should not be encountered separately).
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType23vendorUnknownOrReservedFMS1_S1_":{"name":"vendorUnknownOrReserved","abstract":"Either unknown type, vendor specific or reserved value.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html":{"name":"EntryType","abstract":"Represents a type of an entry.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4nameSS":{"name":"name","abstract":"Name of the file or directory.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry11isDirectorySb":{"name":"isDirectory","abstract":"True, if an entry is a directory.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4sizeSi":{"name":"size","abstract":"Size of the data associated with the entry.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4modeGSqSi_":{"name":"mode","abstract":"File mode.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7ownerIDGSqSi_":{"name":"ownerID","abstract":"Owner’s ID.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7groupIDGSqSi_":{"name":"groupID","abstract":"Owner’s group ID.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry16modificationTimeV10Foundation4Date":{"name":"modificationTime","abstract":"The most recent modification time of the original file or directory.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4typeOS0_9EntryType":{"name":"type","abstract":"Type of entry.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry13ownerUserNameGSqSS_":{"name":"ownerUserName","abstract":"Owner’s user name.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry14ownerGroupNameGSqSS_":{"name":"ownerGroupName","abstract":"Owner’s group name.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry10accessTimeGSqV10Foundation4Date_":{"name":"accessTime","abstract":"The most recent access time of the original file or directory (PAX only).
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7charsetGSqSS_":{"name":"charset","abstract":"Name of the character set used to encode entry’s data (PAX only).
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7commentGSqSS_":{"name":"comment","abstract":"Comment associated with the entry (PAX only).
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry8linkPathGSqSS_":{"name":"linkPath","abstract":"Path to linked entry (PAX only).
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry28unknownExtendedHeaderEntriesGVs10DictionarySSSS_":{"name":"unknownExtendedHeaderEntries","abstract":"Other entries from PAX extended headers.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:FC13SWCompression8TarEntry4dataFT_V10Foundation4Data":{"name":"data()","abstract":"Returns data associated with this entry.
","parent_name":"TarEntry"},"Classes/BZip2.html#/s:ZFC13SWCompression5BZip210decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"Decompresses data using BZip2 algortihm.
","parent_name":"BZip2"},"Classes/Deflate.html#/s:ZFC13SWCompression7Deflate10decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"Decompresses data using Deflate algortihm.
","parent_name":"Deflate"},"Classes/Deflate.html#/s:ZFC13SWCompression7Deflate8compressFzT4dataV10Foundation4Data_S2_":{"name":"compress(data:)","abstract":"Compresses data with Deflate algortihm.
","parent_name":"Deflate"},"Classes/ZlibArchive.html#/s:ZFC13SWCompression11ZlibArchive9unarchiveFzT7archiveV10Foundation4Data_S2_":{"name":"unarchive(archive:)","abstract":"Unarchives Zlib archive.
","parent_name":"ZlibArchive"},"Classes/ZlibArchive.html#/s:ZFC13SWCompression11ZlibArchive7archiveFzT4dataV10Foundation4Data_S2_":{"name":"archive(data:)","abstract":"Archives data into Zlib archive.","parent_name":"ZlibArchive"},"Classes/LZMA.html#/s:ZFC13SWCompression4LZMA10decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"
Decompresses data using LZMA algortihm.
","parent_name":"LZMA"},"Classes/ZipContainer.html#/s:ZFC13SWCompression12ZipContainer4openFzT9containerV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(container:)","abstract":"Processes ZIP container and returns an array of ContainerEntries (which are actually ZipEntries).
","parent_name":"ZipContainer"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry4nameSS":{"name":"name","abstract":"Name of the file or directory.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry7commentGSqSS_":{"name":"comment","abstract":"Comment associated with the entry.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry10attributesVs6UInt32":{"name":"attributes","abstract":"File or directory attributes related to the file system of the container’s creator.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry4sizeSi":{"name":"size","abstract":"Size of the data associated with the entry.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry11isDirectorySb":{"name":"isDirectory","abstract":"True, if an entry is a directory.","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:FC13SWCompression8ZipEntry4dataFzT_V10Foundation4Data":{"name":"data()","abstract":"
Returns data associated with this entry.
","parent_name":"ZipEntry"},"Classes/GzipArchive.html#/s:ZFC13SWCompression11GzipArchive9unarchiveFzT7archiveV10Foundation4Data_S2_":{"name":"unarchive(archive:)","abstract":"Unarchives GZip archive.
","parent_name":"GzipArchive"},"Classes/GzipArchive.html#/s:ZFC13SWCompression11GzipArchive7archiveFzT4dataV10Foundation4Data7commentGSqSS_8fileNameGSqSS_14writeHeaderCRCSb10isTextFileSb6osTypeGSqOVS_10GzipHeader14FileSystemType_16modificationTimeGSqVS1_4Date__S2_":{"name":"archive(data:comment:fileName:writeHeaderCRC:isTextFile:osType:modificationTime:)","abstract":"Archives data into GZip archive, using various specified options.","parent_name":"GzipArchive"},"Classes/LZMA2.html#/s:ZFC13SWCompression5LZMA210decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"
Decompresses data using LZMA2 algortihm.
","parent_name":"LZMA2"},"Classes/LZMA2.html":{"name":"LZMA2","abstract":"Provides decompression function for LZMA2 algorithm.
"},"Classes/GzipArchive.html":{"name":"GzipArchive","abstract":"Provides unarchive and archive functions for GZip archives.
"},"Classes/ZipEntry.html":{"name":"ZipEntry","abstract":"Represents either a file or directory entry in ZIP container.
"},"Classes/ZipContainer.html":{"name":"ZipContainer","abstract":"Provides open function for ZIP containers.
"},"Classes/LZMA.html":{"name":"LZMA","abstract":"Provides decompression function for LZMA algorithm.
"},"Classes/ZlibArchive.html":{"name":"ZlibArchive","abstract":"Provides unarchive and archive functions for Zlib archives.
"},"Classes/Deflate.html":{"name":"Deflate","abstract":"Provides compression and decompression functions for Deflate algorithm.
"},"Classes/BZip2.html":{"name":"BZip2","abstract":"Provides decompression function for BZip2 algorithm.
"},"Classes/TarEntry.html":{"name":"TarEntry","abstract":"Represents either a file or directory entry in TAR container.
"},"Classes/TarContainer.html":{"name":"TarContainer","abstract":"Provides open function for TAR containers.
"},"Classes/XZArchive.html":{"name":"XZArchive","abstract":"Provides unarchive function for XZ archives.
"},"Classes.html":{"name":"Classes","abstract":"The following classes are available globally.
"},"Enums.html":{"name":"Enums","abstract":"The following enums are available globally.
"},"Protocols.html":{"name":"Protocols","abstract":"The following protocols are available globally.
"},"Structs.html":{"name":"Structs","abstract":"The following structs are available globally.
"}}
\ No newline at end of file
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/docSet.dsidx b/docs/docsets/SWCompression.docset/Contents/Resources/docSet.dsidx
index cf8d3093..81b7f0de 100644
Binary files a/docs/docsets/SWCompression.docset/Contents/Resources/docSet.dsidx and b/docs/docsets/SWCompression.docset/Contents/Resources/docSet.dsidx differ
diff --git a/docs/docsets/SWCompression.tgz b/docs/docsets/SWCompression.tgz
index efa019cc..639acc4d 100644
Binary files a/docs/docsets/SWCompression.tgz and b/docs/docsets/SWCompression.tgz differ
diff --git a/docs/index.html b/docs/index.html
index 2d2a68f9..acd592b9 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -22,7 +22,7 @@
SWCompression Docs
- (75% documented)
+ (100% documented)
@@ -180,7 +180,7 @@
-A framework which contains implementations of (de)compression algorithms.
+A framework which contains implementations of (de)compression algorithms and functions which parse various archives and containers.
Developed with Swift.
Why have you made this framework?
@@ -203,7 +203,8 @@ And yes, it is also in Objective-C.
Containers:
-- ZIP (complying to ISO/IEC 21320 standard)
+- ZIP
+- TAR
Decompression algorithms:
@@ -225,7 +226,7 @@ And yes, it is also in Objective-C.
Zlib
Platform independent.
-Swift only.
+Written with Swift only.
By the way, it seems like GZip, Deflate and Zlib implementations are specification compliant.
@@ -246,6 +247,8 @@ Available subspecs:
SWCompression/Gzip
SWCompression/Zlib
SWCompression/BZip2
+SWCompression/ZIP
+SWCompression/TAR
You can add some or all of them instead of pod 'SWCompression'
@@ -254,7 +257,8 @@ Available subspecs:
To complete installation, run pod install.
-Note: Actually, there is one more subspec (SWCompression/Common) but it does not contain any end-user functions. It is included in every other subspec and should not be specified directly in Podfile.
+Note: Actually, there is one more subspec (SWCompression/Common) but it does not contain any end-user functions.
+It is included in every other subspec and should not be specified directly in Podfile.
Carthage
Add to your Cartfile github "tsolomko/SWCompression".
@@ -270,31 +274,41 @@ Available subspecs:
let package = Package(
name: "PackageName",
dependencies: [
- .Package(url: "https://github.com/tsolomko/SWCompression.git", majorVersion: 2)
+ .Package(url: "https://github.com/tsolomko/SWCompression.git", majorVersion: 3)
]
)
More info about SPM you can find at Swift Package Manager’s Documentation.
+Deflate is a default compression method of ZIP containers.
+ +This means, that if you use CocoaPods, when installing SWCompression/ZIP it will install SWCompression/Deflate as a dependency.
+ +However, ZIP containers can also support LZMA and BZip2. +So if you want to enable them in your Pods configuration you need to include SWCompression/LZMA and/or SWCompression/Deflate.
+ +If you use Carthage or Swift Package Manager you always have the full package, +and ZIP will be built with both BZip2 and LZMA support.
If you’d like to decompress deflated
data just use:
let data = try! Data(contentsOf: URL(fileURLWithPath: "path/to/file"),
options: .mappedIfSafe)
-let decompressedData = try? Deflate.decompress(compressedData: data)
+let decompressedData = try? Deflate.decompress(data: data)
Note: It is highly recommended to specify Data.ReadingOptions.mappedIfSafe,
-especially if you are working with large files,
-so you don’t run out of system memory.
However, it is unlikely that you will encounter deflated data outside of any archive. So, in case of GZip archive you should use:
let decompressedData = try? GzipArchive.unarchive(archiveData: data)
-One final note: every unarchive/decompress function can throw an error and +
One final note: every SWCompression function can throw an error and you are responsible for handling them.
If you look at list of available error types and their cases, -you may be frightened by their number. +
If you look at list of available error types and their cases, you may be frightened by their number.
However, most of these cases (such as XZError.WrongMagic) exist for diagnostic purposes.
Thus, you only need to handle the most common type of error for your archive/algorithm. @@ -311,7 +324,7 @@ For example:
do {
let data = try Data(contentsOf: URL(fileURLWithPath: "path/to/file"),
options: .mappedIfSafe)
- let decompressedData = XZArchive.unarchive(archiveData: data)
+ let decompressedData = XZArchive.unarchive(archive: data)
} catch let error as XZError {
<handle XZ related error here>
} catch let error {
@@ -340,7 +353,9 @@ so some difference in speed is expected.
Future plans
-- Tar unarchiving.
+- Better Deflate compression.
+- Support for additional attributes in containers.
+- 7zip containers.
- BZip2 compression.
- Something else…
diff --git a/docs/search.json b/docs/search.json
index 0812255e..e6d82172 100644
--- a/docs/search.json
+++ b/docs/search.json
@@ -1 +1 @@
-{"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel16fastestAlgorithmFMS1_S1_":{"name":"fastestAlgorithm","abstract":"Fastest algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel13fastAlgorithmFMS1_S1_":{"name":"fastAlgorithm","abstract":"Fast algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel16defaultAlgorithmFMS1_S1_":{"name":"defaultAlgorithm","abstract":"Default algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel13slowAlgorithmFMS1_S1_":{"name":"slowAlgorithm","abstract":"Slowest algorithm but with maximum compression.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionMethod.html#/s:FOV13SWCompression10ZlibHeader17CompressionMethod7deflateFMS1_S1_":{"name":"deflate","abstract":"The only one supported compression method (Deflate).
","parent_name":"CompressionMethod"},"Structs/ZlibHeader/CompressionMethod.html":{"name":"CompressionMethod","abstract":"Supported compression methods in zlib archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader/CompressionLevel.html":{"name":"CompressionLevel","abstract":"Levels of compression which can be used to create zlib archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader17compressionMethodOS0_17CompressionMethod":{"name":"compressionMethod","abstract":"Compression method of archive. Always equals to .deflate.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader16compressionLevelOS0_16CompressionLevel":{"name":"compressionLevel","abstract":"Level of compression in the archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader10windowSizeSi":{"name":"windowSize","abstract":"Size of ‘window’: moving interval of data which was used to make the archive
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:FV13SWCompression10ZlibHeadercFzT11archiveDataV10Foundation4Data_S0_":{"name":"init(archiveData:)","abstract":"Initializes the structure with the values from zlib archive presented in archiveData.
","parent_name":"ZlibHeader"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType4unixFMS1_S1_":{"name":"unix","abstract":"One of many Linux systems. (It seems like modern macOS systems also fall into this category).
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType9macintoshFMS1_S1_":{"name":"macintosh","abstract":"Older Macintosh (Mac OS, OS X) systems.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType4ntfsFMS1_S1_":{"name":"ntfs","abstract":"File system used in Microsoft™®© Windows™®©.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType7unknownFMS1_S1_":{"name":"unknown","abstract":"File system was unknown to the archiver.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType5otherFMS1_S1_":{"name":"other","abstract":"File system was one of the rare systems..
","parent_name":"FileSystemType"},"Structs/GzipHeader/CompressionMethod.html#/s:FOV13SWCompression10GzipHeader17CompressionMethod7deflateFMS1_S1_":{"name":"deflate","abstract":"The only one supported compression method (Deflate).
","parent_name":"CompressionMethod"},"Structs/GzipHeader/CompressionMethod.html":{"name":"CompressionMethod","abstract":"Supported compression methods in gzip archive.
","parent_name":"GzipHeader"},"Structs/GzipHeader/FileSystemType.html":{"name":"FileSystemType","abstract":"Type of file system on which gzip archive was created.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader17compressionMethodOS0_17CompressionMethod":{"name":"compressionMethod","abstract":"Compression method of archive. Always equals to .deflate.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader16modificationTimeGSqV10Foundation4Date_":{"name":"modificationTime","abstract":"The most recent modification time of the original file. If set to 0 (default value == unset), then nil.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader6osTypeOS0_14FileSystemType":{"name":"osType","abstract":"Type of file system on which compression took place.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader16originalFileNameGSqSS_":{"name":"originalFileName","abstract":"Name of the original file.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader7commentGSqSS_":{"name":"comment","abstract":"Comment inside the archive.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:FV13SWCompression10GzipHeadercFzT11archiveDataV10Foundation4Data_S0_":{"name":"init(archiveData:)","abstract":"Initializes the structure with the values of first ‘member’ in gzip archive presented in archiveData.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html":{"name":"GzipHeader","abstract":"A structure which provides information about gzip archive.
"},"Structs/ZlibHeader.html":{"name":"ZlibHeader","abstract":"A structure which provides information about zlib archive.
"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry4nameSS":{"name":"name","abstract":"Undocumented
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry4sizeSi":{"name":"size","abstract":"Undocumented
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry11isDirectorySb":{"name":"isDirectory","abstract":"Undocumented
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:FP13SWCompression14ContainerEntry4dataFzT_V10Foundation4Data":{"name":"data()","abstract":"Undocumented
","parent_name":"ContainerEntry"},"Protocols/Container.html#/s:ZFP13SWCompression9Container4openFzT13containerDataV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(containerData:)","abstract":"Undocumented
","parent_name":"Container"},"Protocols/DecompressionAlgorithm.html#/s:ZFP13SWCompression22DecompressionAlgorithm10decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"Abstract decompress function.
","parent_name":"DecompressionAlgorithm"},"Protocols/Archive.html#/s:ZFP13SWCompression7Archive9unarchiveFzT11archiveDataV10Foundation4Data_S2_":{"name":"unarchive(archiveData:)","abstract":"Abstract unarchive function.
","parent_name":"Archive"},"Protocols/Archive.html":{"name":"Archive","abstract":"Abstract archive class which supports unarchiving.
"},"Protocols/DecompressionAlgorithm.html":{"name":"DecompressionAlgorithm","abstract":"Abstract decompression algorithm class which supports decompression.
"},"Protocols/Container.html":{"name":"Container","abstract":"Undocumented
"},"Protocols/ContainerEntry.html":{"name":"ContainerEntry","abstract":"Undocumented
"},"Enums/XZError.html#/s:FO13SWCompression7XZError10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"Either magic number in header or footer was not equal to predefined value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError16wrongArchiveInfoFMS0_S0_":{"name":"wrongArchiveInfo","abstract":"One of special fields of archive had an incorrect value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError18fieldReservedValueFMS0_S0_":{"name":"fieldReservedValue","abstract":"One of special fields of archive had a reserved value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError12wrongInfoCRCFMS0_S0_":{"name":"wrongInfoCRC","abstract":"Checksum of one of special fields of archive was incorrect.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError13wrongFilterIDFMS0_S0_":{"name":"wrongFilterID","abstract":"ID of filter(s) used in archvie was unsupported.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError15checkTypeSHA256FMS0_S0_":{"name":"checkTypeSHA256","abstract":"Type of checksum of archive was SHA-256.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError13wrongDataSizeFMS0_S0_":{"name":"wrongDataSize","abstract":"Either size of decompressed data was not equal to specified one in block header or","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError10wrongCheckFMS0_FV10Foundation4DataS0_":{"name":"wrongCheck","abstract":"
Computed checksum of uncompressed data didn’t match the value stored in the archive.","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError12wrongPaddingFMS0_S0_":{"name":"wrongPadding","abstract":"
Unsupported padding of a structure in the archive.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError21multiByteIntegerErrorFMS0_S0_":{"name":"multiByteIntegerError","abstract":"Either null byte encountered or exceeded maximum amount bytes during reading multi byte number.
","parent_name":"XZError"},"Enums/TarError.html#/s:FO13SWCompression8TarError20tooSmallFileIsPassedFMS0_S0_":{"name":"tooSmallFileIsPassed","abstract":"Undocumented
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError16fieldIsNotNumberFMS0_S0_":{"name":"fieldIsNotNumber","abstract":"Undocumented
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError19wrongHeaderChecksumFMS0_S0_":{"name":"wrongHeaderChecksum","abstract":"Undocumented
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError17wrongUstarVersionFMS0_S0_":{"name":"wrongUstarVersion","abstract":"Undocumented
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError19wrongPaxHeaderEntryFMS0_S0_":{"name":"wrongPaxHeaderEntry","abstract":"Undocumented
","parent_name":"TarError"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"Magic number was not 0x425a.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method was not type ‘h’ (not Huffman).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14wrongBlockSizeFMS0_S0_":{"name":"wrongBlockSize","abstract":"Unknown block size (not from ‘0’ to ‘9’).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14wrongBlockTypeFMS0_S0_":{"name":"wrongBlockType","abstract":"Unknown block type (was neither ‘pi’ nor ‘sqrt(pi)’).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error15randomizedBlockFMS0_S0_":{"name":"randomizedBlock","abstract":"Block is randomized.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error18wrongHuffmanGroupsFMS0_S0_":{"name":"wrongHuffmanGroups","abstract":"Wrong number of Huffman tables/groups (should be between 2 and 6).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error13wrongSelectorFMS0_S0_":{"name":"wrongSelector","abstract":"Selector was greater than total number of Huffman tables/groups.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error22wrongHuffmanLengthCodeFMS0_S0_":{"name":"wrongHuffmanLengthCode","abstract":"Wrong code of Huffman length (should be between 0 and 20).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14symbolNotFoundFMS0_S0_":{"name":"symbolNotFound","abstract":"Symbol was not found in Huffman tree.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error8wrongCRCFMS0_FV10Foundation4DataS0_":{"name":"wrongCRC","abstract":"Computed CRC of uncompressed data didn’t match the value stored in the archive.","parent_name":"BZip2Error"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError29wrongUncompressedBlockLengthsFMS0_S0_":{"name":"wrongUncompressedBlockLengths","abstract":"
Uncompressed block’ length and nlength bytes were not compatible.
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError14wrongBlockTypeFMS0_S0_":{"name":"wrongBlockType","abstract":"Unknown block type (not from 0 to 2).
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError11wrongSymbolFMS0_S0_":{"name":"wrongSymbol","abstract":"Decoded symbol was found in Huffman tree but is unknown.
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError14symbolNotFoundFMS0_S0_":{"name":"symbolNotFound","abstract":"Symbol was not found in Huffman tree.
","parent_name":"DeflateError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method was other than 8 which is the only supported one.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError20wrongCompressionInfoFMS0_S0_":{"name":"wrongCompressionInfo","abstract":"Compression info was greater than 7 which is uncompatible number 8 compression method.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError11wrongFcheckFMS0_S0_":{"name":"wrongFcheck","abstract":"First two bytes were inconsistent with each other.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError21wrongCompressionLevelFMS0_S0_":{"name":"wrongCompressionLevel","abstract":"Compression level was other than 0, 1, 2, 3.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError12wrongAdler32FMS0_FV10Foundation4DataS0_":{"name":"wrongAdler32","abstract":"Computed Adler-32 sum of uncompressed data didn’t match the value stored in the archive.","parent_name":"ZlibError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError15wrongPropertiesFMS0_S0_":{"name":"wrongProperties","abstract":"
Properties byte was greater than 225.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError21rangeDecoderInitErrorFMS0_S0_":{"name":"rangeDecoderInitError","abstract":"Unable to initialize RanderDecorer.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError24exceededUncompressedSizeFMS0_S0_":{"name":"exceededUncompressedSize","abstract":"The number of uncompressed bytes hit limit in the middle of decoding.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError13windowIsEmptyFMS0_S0_":{"name":"windowIsEmpty","abstract":"Unable to perfrom repeat-distance decoding because there is nothing to repeat.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError23rangeDecoderFinishErrorFMS0_S0_":{"name":"rangeDecoderFinishError","abstract":"End of stream marker is reached, but range decoder is in incorrect state.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError16repeatWillExceedFMS0_S0_":{"name":"repeatWillExceed","abstract":"The number of bytes to repeat is greater than the amount bytes that is left to decode.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError17notEnoughToRepeatFMS0_S0_":{"name":"notEnoughToRepeat","abstract":"The amount of already decoded bytes is smaller than repeat length.
","parent_name":"LZMAError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError27notFoundCentralDirectoryEndFMS0_S0_":{"name":"notFoundCentralDirectoryEnd","abstract":"End of Central Directoty record was not found.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError14wrongSignatureFMS0_S0_":{"name":"wrongSignature","abstract":"Wrong signature of one of ZIP container’s structures.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError9wrongSizeFMS0_S0_":{"name":"wrongSize","abstract":"Wrong either compressed or uncompressed size of a ZIP container’s entry.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError12wrongVersionFMS0_S0_":{"name":"wrongVersion","abstract":"Wrong number of version needed to extract ZIP container.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError24multiVolumesNotSupportedFMS0_S0_":{"name":"multiVolumesNotSupported","abstract":"Archive either spanned or consists of several volumes. This feature is not supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError22encryptionNotSupportedFMS0_S0_":{"name":"encryptionNotSupported","abstract":"Entry or record is encrypted. This feature is not supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError20patchingNotSupportedFMS0_S0_":{"name":"patchingNotSupported","abstract":"Entry contains patched data. This feature is not supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError23compressionNotSupportedFMS0_S0_":{"name":"compressionNotSupported","abstract":"Wrong compression method of an entry.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError16wrongLocalHeaderFMS0_S0_":{"name":"wrongLocalHeader","abstract":"Wrong local header of an entry.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError10wrongCRC32FMS0_FV10Foundation4DataS0_":{"name":"wrongCRC32","abstract":"Computed CRC32 of entry’s data didn’t match the value stored in the container.","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError14wrongTextFieldFMS0_S0_":{"name":"wrongTextField","abstract":"
Undocumented
","parent_name":"ZipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"First two bytes of archive were not 31 and 139.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method was other than 8 which is the only supported one.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongFlagsFMS0_S0_":{"name":"wrongFlags","abstract":"Reserved flags bits were not equal to 0.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError14wrongHeaderCRCFMS0_S0_":{"name":"wrongHeaderCRC","abstract":"Computed CRC of header didn’t match the value stored in the archive.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError8wrongCRCFMS0_FV10Foundation4DataS0_":{"name":"wrongCRC","abstract":"Computed CRC of uncompressed data didn’t match the value stored in the archive.","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongISizeFMS0_S0_":{"name":"wrongISize","abstract":"
Computed isize didn’t match the value stored in the archive.
","parent_name":"GzipError"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error15wrongPropertiesFMS0_S0_":{"name":"wrongProperties","abstract":"Reserved bits of LZMA2 properties byte were not equal to zero.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error19wrongDictionarySizeFMS0_S0_":{"name":"wrongDictionarySize","abstract":"Dictionary size was too big.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error16wrongControlByteFMS0_S0_":{"name":"wrongControlByte","abstract":"Unknown conrol byte value of LZMA2 packet.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error10wrongResetFMS0_S0_":{"name":"wrongReset","abstract":"Unknown reset instruction encounetered in LZMA2 packet.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error10wrongSizesFMS0_S0_":{"name":"wrongSizes","abstract":"Either size of decompressed data was not equal to specified one in LZMA2 packet or","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html":{"name":"LZMA2Error","abstract":"
Error happened during LZMA2 decompression."},"Enums/GzipError.html":{"name":"GzipError","abstract":"
Error happened during unarchiving gzip archive."},"Enums/ZipError.html":{"name":"ZipError","abstract":"
Error happened during processing ZIP archive (container)."},"Enums/LZMAError.html":{"name":"LZMAError","abstract":"
Error happened during LZMA decompression."},"Enums/ZlibError.html":{"name":"ZlibError","abstract":"
Error happened during unarchiving Zlib archive."},"Enums/DeflateError.html":{"name":"DeflateError","abstract":"
Error happened during deflate decompression."},"Enums/BZip2Error.html":{"name":"BZip2Error","abstract":"
Error happened during bzip2 decompression."},"Enums/TarError.html":{"name":"TarError","abstract":"
Error happened during processing TAR archive (container)."},"Enums/XZError.html":{"name":"XZError","abstract":"
Error happened during unarchiving XZ archive."},"Classes/XZArchive.html#/s:ZFC13SWCompression9XZArchive9unarchiveFzT11archiveDataV10Foundation4Data_S2_":{"name":"unarchive(archiveData:)","abstract":"
Unarchives xz archive stored in archiveData.
","parent_name":"XZArchive"},"Classes/TarContainer.html#/s:ZFC13SWCompression12TarContainer4openFzT13containerDataV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(containerData:)","abstract":"Undocumented
","parent_name":"TarContainer"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType6normalFMS1_S1_":{"name":"normal","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType8hardLinkFMS1_S1_":{"name":"hardLink","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType12symbolicLinkFMS1_S1_":{"name":"symbolicLink","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType16characterSpecialFMS1_S1_":{"name":"characterSpecial","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType12blockSpecialFMS1_S1_":{"name":"blockSpecial","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType9directoryFMS1_S1_":{"name":"directory","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType4fifoFMS1_S1_":{"name":"fifo","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType10contiguousFMS1_S1_":{"name":"contiguous","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType20globalExtendedHeaderFMS1_S1_":{"name":"globalExtendedHeader","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType19localExtendedHeaderFMS1_S1_":{"name":"localExtendedHeader","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType23vendorUnknownOrReservedFMS1_S1_":{"name":"vendorUnknownOrReserved","abstract":"Undocumented
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html":{"name":"EntryType","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4nameSS":{"name":"name","abstract":"Name of the file or directory.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry11isDirectorySb":{"name":"isDirectory","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4modeGSqSi_":{"name":"mode","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7ownerIDGSqSi_":{"name":"ownerID","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7groupIDGSqSi_":{"name":"groupID","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4sizeSi":{"name":"size","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry16modificationTimeV10Foundation4Date":{"name":"modificationTime","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4typeOS0_9EntryType":{"name":"type","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry13ownerUserNameGSqSS_":{"name":"ownerUserName","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry14ownerGroupNameGSqSS_":{"name":"ownerGroupName","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry10accessTimeGSqV10Foundation4Date_":{"name":"accessTime","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7charsetGSqSS_":{"name":"charset","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7commentGSqSS_":{"name":"comment","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry8linkPathGSqSS_":{"name":"linkPath","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry28unknownExtendedHeaderEntriesGVs10DictionarySSSS_":{"name":"unknownExtendedHeaderEntries","abstract":"Undocumented
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:FC13SWCompression8TarEntry4dataFT_V10Foundation4Data":{"name":"data()","abstract":"Returns data associated with this entry.
","parent_name":"TarEntry"},"Classes/BZip2.html#/s:ZFC13SWCompression5BZip210decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"Decompresses compressedData with BZip2 algortihm.
","parent_name":"BZip2"},"Classes/Deflate.html#/s:ZFC13SWCompression7Deflate10decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"Decompresses compressedData with DEFLATE algortihm.
","parent_name":"Deflate"},"Classes/Deflate.html#/s:ZFC13SWCompression7Deflate8compressFzT4dataV10Foundation4Data_S2_":{"name":"compress(data:)","abstract":"Compresses data with DEFLATE algortihm.
","parent_name":"Deflate"},"Classes/ZlibArchive.html#/s:ZFC13SWCompression11ZlibArchive9unarchiveFzT11archiveDataV10Foundation4Data_S2_":{"name":"unarchive(archiveData:)","abstract":"Unarchives Zlib archive stored in archiveData.
","parent_name":"ZlibArchive"},"Classes/ZlibArchive.html#/s:ZFC13SWCompression11ZlibArchive7archiveFzT4dataV10Foundation4Data_S2_":{"name":"archive(data:)","abstract":"Archives data into Zlib archive. Data will be also compressed with DEFLTATE algorithm.","parent_name":"ZlibArchive"},"Classes/LZMA.html#/s:ZFC13SWCompression4LZMA10decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"
Decompresses compressedData with LZMA algortihm.
","parent_name":"LZMA"},"Classes/ZipContainer.html#/s:ZFC13SWCompression12ZipContainer4openFzT13containerDataV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(containerData:)","abstract":"Processes ZIP archive (container) and returns an array of ContainerEntries (which are actually ZipEntries).","parent_name":"ZipContainer"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry4nameSS":{"name":"name","abstract":"
Name of the file or directory.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry7commentGSqSS_":{"name":"comment","abstract":"Comment associated with the entry.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry10attributesVs6UInt32":{"name":"attributes","abstract":"File or directory attributes related to the file system of archive’s creator.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry4sizeSi":{"name":"size","abstract":"Undocumented
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry11isDirectorySb":{"name":"isDirectory","abstract":"True, if an entry is likely to be a directory.","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:FC13SWCompression8ZipEntry4dataFzT_V10Foundation4Data":{"name":"data()","abstract":"
Returns data associated with this entry.
","parent_name":"ZipEntry"},"Classes/GzipArchive.html#/s:ZFC13SWCompression11GzipArchive9unarchiveFzT11archiveDataV10Foundation4Data_S2_":{"name":"unarchive(archiveData:)","abstract":"Unarchives gzip archive stored in archiveData.
","parent_name":"GzipArchive"},"Classes/GzipArchive.html#/s:ZFC13SWCompression11GzipArchive7archiveFzT4dataV10Foundation4Data_S2_":{"name":"archive(data:)","abstract":"Archives data into GZip archive. Data will be also compressed with DEFLTATE algorithm.","parent_name":"GzipArchive"},"Classes/LZMA2.html#/s:ZFC13SWCompression5LZMA210decompressFzT14compressedDataV10Foundation4Data_S2_":{"name":"decompress(compressedData:)","abstract":"
Decompresses compressedData with LZMA2 algortihm. LZMA2 is a modification of LZMA.
","parent_name":"LZMA2"},"Classes/LZMA2.html":{"name":"LZMA2","abstract":"Provides function to decompress data, which were compressed with LZMA2
"},"Classes/GzipArchive.html":{"name":"GzipArchive","abstract":"Provides unarchive function for GZip archives.
"},"Classes/ZipEntry.html":{"name":"ZipEntry","abstract":"Represents either a file or directory entry inside ZIP archive.
"},"Classes/ZipContainer.html":{"name":"ZipContainer","abstract":"Provides function which opens ZIP archives (containers).
"},"Classes/LZMA.html":{"name":"LZMA","abstract":"Provides function to decompress data, which were compressed with LZMA
"},"Classes/ZlibArchive.html":{"name":"ZlibArchive","abstract":"Provides unarchive function for Zlib archives.
"},"Classes/Deflate.html":{"name":"Deflate","abstract":"Provides function to decompress data, which were compressed with DEFLATE.
"},"Classes/BZip2.html":{"name":"BZip2","abstract":"Provides function to decompress data, which were compressed using BZip2.
"},"Classes/TarEntry.html":{"name":"TarEntry","abstract":"Represents either a file or directory entry inside TAR archive.
"},"Classes/TarContainer.html":{"name":"TarContainer","abstract":"Provides function which opens TAR archives (containers).
"},"Classes/XZArchive.html":{"name":"XZArchive","abstract":"Provides unarchive function for XZ archives.
"},"Classes.html":{"name":"Classes","abstract":"The following classes are available globally.
"},"Enums.html":{"name":"Enums","abstract":"The following enums are available globally.
"},"Protocols.html":{"name":"Protocols","abstract":"The following protocols are available globally.
"},"Structs.html":{"name":"Structs","abstract":"The following structs are available globally.
"}}
\ No newline at end of file
+{"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel16fastestAlgorithmFMS1_S1_":{"name":"fastestAlgorithm","abstract":"Fastest algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel13fastAlgorithmFMS1_S1_":{"name":"fastAlgorithm","abstract":"Fast algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel16defaultAlgorithmFMS1_S1_":{"name":"defaultAlgorithm","abstract":"Default algorithm.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionLevel.html#/s:FOV13SWCompression10ZlibHeader16CompressionLevel13slowAlgorithmFMS1_S1_":{"name":"slowAlgorithm","abstract":"Slowest algorithm but with maximum compression.
","parent_name":"CompressionLevel"},"Structs/ZlibHeader/CompressionMethod.html#/s:FOV13SWCompression10ZlibHeader17CompressionMethod7deflateFMS1_S1_":{"name":"deflate","abstract":"The only one supported compression method (Deflate).
","parent_name":"CompressionMethod"},"Structs/ZlibHeader/CompressionMethod.html":{"name":"CompressionMethod","abstract":"Supported compression methods in zlib archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader/CompressionLevel.html":{"name":"CompressionLevel","abstract":"Levels of compression which can be used to create Zlib archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader17compressionMethodOS0_17CompressionMethod":{"name":"compressionMethod","abstract":"Compression method of archive. Currently, always equals to .deflate.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader16compressionLevelOS0_16CompressionLevel":{"name":"compressionLevel","abstract":"Level of compression used in archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:vV13SWCompression10ZlibHeader10windowSizeSi":{"name":"windowSize","abstract":"Size of ‘window’: moving interval of data which was used to make archive.
","parent_name":"ZlibHeader"},"Structs/ZlibHeader.html#/s:FV13SWCompression10ZlibHeadercFzT7archiveV10Foundation4Data_S0_":{"name":"init(archive:)","abstract":"Initializes the structure with the values from Zlib archive.
","parent_name":"ZlibHeader"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType4unixFMS1_S1_":{"name":"unix","abstract":"One of many UNIX-like systems.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType9macintoshFMS1_S1_":{"name":"macintosh","abstract":"Older Macintosh systems.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType4ntfsFMS1_S1_":{"name":"ntfs","abstract":"File system used in Microsoft™®© Windows™®©.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType7unknownFMS1_S1_":{"name":"unknown","abstract":"File system was unknown to the archiver.
","parent_name":"FileSystemType"},"Structs/GzipHeader/FileSystemType.html#/s:FOV13SWCompression10GzipHeader14FileSystemType5otherFMS1_S1_":{"name":"other","abstract":"File system is one of the rare systems.
","parent_name":"FileSystemType"},"Structs/GzipHeader/CompressionMethod.html#/s:FOV13SWCompression10GzipHeader17CompressionMethod7deflateFMS1_S1_":{"name":"deflate","abstract":"The only one supported compression method (Deflate).
","parent_name":"CompressionMethod"},"Structs/GzipHeader/CompressionMethod.html":{"name":"CompressionMethod","abstract":"Supported compression methods in GZip archive.
","parent_name":"GzipHeader"},"Structs/GzipHeader/FileSystemType.html":{"name":"FileSystemType","abstract":"Type of file system on which GZip archive was created.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader17compressionMethodOS0_17CompressionMethod":{"name":"compressionMethod","abstract":"Compression method of archive. Currently, always equals to .deflate.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader16modificationTimeGSqV10Foundation4Date_":{"name":"modificationTime","abstract":"The most recent modification time of the original file.","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader6osTypeOS0_14FileSystemType":{"name":"osType","abstract":"
Type of file system on which archivation took place.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader8fileNameGSqSS_":{"name":"fileName","abstract":"Name of the original file. If archive doesn’t contain file’s name, then nil.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader7commentGSqSS_":{"name":"comment","abstract":"Comment stored in archive. If archive doesn’t contain any comment, then nil.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:vV13SWCompression10GzipHeader10isTextFileSb":{"name":"isTextFile","abstract":"Check if file is likely to be text file or ASCII-file.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html#/s:FV13SWCompression10GzipHeadercFzT7archiveV10Foundation4Data_S0_":{"name":"init(archive:)","abstract":"Initializes the structure with the values from the first ‘member’ of GZip archive.
","parent_name":"GzipHeader"},"Structs/GzipHeader.html":{"name":"GzipHeader","abstract":"Represents a GZip archive’s header.
"},"Structs/ZlibHeader.html":{"name":"ZlibHeader","abstract":"Represents a Zlib archive’s header.
"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry4nameSS":{"name":"name","abstract":"Retrieve name of the entry from the container.
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry4sizeSi":{"name":"size","abstract":"Retrieve size of the entry’s data from the container.
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:vP13SWCompression14ContainerEntry11isDirectorySb":{"name":"isDirectory","abstract":"Check if entry is a directory.
","parent_name":"ContainerEntry"},"Protocols/ContainerEntry.html#/s:FP13SWCompression14ContainerEntry4dataFzT_V10Foundation4Data":{"name":"data()","abstract":"Retrieve entry’s data from the container.
","parent_name":"ContainerEntry"},"Protocols/Container.html#/s:ZFP13SWCompression9Container4openFzT9containerV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(container:)","abstract":"Retrieve all the entries from the container.
","parent_name":"Container"},"Protocols/DecompressionAlgorithm.html#/s:ZFP13SWCompression22DecompressionAlgorithm10decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"Decompress data compressed with particular algorithm.
","parent_name":"DecompressionAlgorithm"},"Protocols/Archive.html#/s:ZFP13SWCompression7Archive9unarchiveFzT7archiveV10Foundation4Data_S2_":{"name":"unarchive(archive:)","abstract":"Unarchive data from the archive.
","parent_name":"Archive"},"Protocols/Archive.html":{"name":"Archive","abstract":"A type that represents an archive.
"},"Protocols/DecompressionAlgorithm.html":{"name":"DecompressionAlgorithm","abstract":"A type that provides an implementation of a particular decompression algorithm.
"},"Protocols/Container.html":{"name":"Container","abstract":"A type that represents a container of files, directories and/or other data.
"},"Protocols/ContainerEntry.html":{"name":"ContainerEntry","abstract":"A type that represents an entry from a container (file or directory) with attributes.
"},"Enums/XZError.html#/s:FO13SWCompression7XZError10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"Either ‘magic’ number in header or footer isn’t equal to a predefined value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError15wrongFieldValueFMS0_S0_":{"name":"wrongFieldValue","abstract":"One of the fields in archive has an incorrect value.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError18fieldReservedValueFMS0_S0_":{"name":"fieldReservedValue","abstract":"One of the reserved fields in archive has an unexpected value, which can also mean (apart from damaged archive),","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError12wrongInfoCRCFMS0_S0_":{"name":"wrongInfoCRC","abstract":"
Checksum of one of the fields of archive doesn’t match the value stored in archive.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError13wrongFilterIDFMS0_S0_":{"name":"wrongFilterID","abstract":"Filter used in archvie is unsupported.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError15checkTypeSHA256FMS0_S0_":{"name":"checkTypeSHA256","abstract":"Archive uses SHA-256 checksum which is unsupported.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError13wrongDataSizeFMS0_S0_":{"name":"wrongDataSize","abstract":"Either size of decompressed data isn’t equal to the one specified in archive or","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError10wrongCheckFMS0_FV10Foundation4DataS0_":{"name":"wrongCheck","abstract":"
Computed checksum of uncompressed data doesn’t match the value stored in the archive.","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError12wrongPaddingFMS0_S0_":{"name":"wrongPadding","abstract":"
Padding (null-bytes appended to an archive’s structure) is incorrect.
","parent_name":"XZError"},"Enums/XZError.html#/s:FO13SWCompression7XZError21multiByteIntegerErrorFMS0_S0_":{"name":"multiByteIntegerError","abstract":"Either null byte encountered or exceeded maximum amount bytes during reading multi byte number.
","parent_name":"XZError"},"Enums/TarError.html#/s:FO13SWCompression8TarError20tooSmallFileIsPassedFMS0_S0_":{"name":"tooSmallFileIsPassed","abstract":"Size of data is too small, even to contain only one header.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError16fieldIsNotNumberFMS0_S0_":{"name":"fieldIsNotNumber","abstract":"Failed to process a field as a number.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError19wrongHeaderChecksumFMS0_S0_":{"name":"wrongHeaderChecksum","abstract":"Computed checksum of a header doesn’t match the value stored in container.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError17wrongUstarVersionFMS0_S0_":{"name":"wrongUstarVersion","abstract":"Unsupported version of USTAR format.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError19wrongPaxHeaderEntryFMS0_S0_":{"name":"wrongPaxHeaderEntry","abstract":"Entry from PAX extended header is in incorrect format.
","parent_name":"TarError"},"Enums/TarError.html#/s:FO13SWCompression8TarError14notAsciiStringFMS0_S0_":{"name":"notAsciiString","abstract":"Failed to process a field as an ASCII string.
","parent_name":"TarError"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"‘Magic’ number is not 0x425a.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method is not type ‘h’ (not Huffman).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14wrongBlockSizeFMS0_S0_":{"name":"wrongBlockSize","abstract":"Unsupported block size (not from ‘0’ to ‘9’).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14wrongBlockTypeFMS0_S0_":{"name":"wrongBlockType","abstract":"Unsupported block type (is neither ‘pi’ nor ‘sqrt(pi)’).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error15randomizedBlockFMS0_S0_":{"name":"randomizedBlock","abstract":"Block is randomized.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error18wrongHuffmanGroupsFMS0_S0_":{"name":"wrongHuffmanGroups","abstract":"Wrong number of Huffman tables/groups (should be between 2 and 6).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error13wrongSelectorFMS0_S0_":{"name":"wrongSelector","abstract":"Selector is greater than the total number of Huffman tables/groups.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error22wrongHuffmanLengthCodeFMS0_S0_":{"name":"wrongHuffmanLengthCode","abstract":"Wrong code of Huffman length (should be between 0 and 20).
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error14symbolNotFoundFMS0_S0_":{"name":"symbolNotFound","abstract":"Symbol wasn’t found in Huffman tree.
","parent_name":"BZip2Error"},"Enums/BZip2Error.html#/s:FO13SWCompression10BZip2Error8wrongCRCFMS0_FV10Foundation4DataS0_":{"name":"wrongCRC","abstract":"Computed checksum of uncompressed data doesn’t match the value stored in archive.","parent_name":"BZip2Error"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError29wrongUncompressedBlockLengthsFMS0_S0_":{"name":"wrongUncompressedBlockLengths","abstract":"
Uncompressed block’s length and nlength bytes isn’t consistent with each other.
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError14wrongBlockTypeFMS0_S0_":{"name":"wrongBlockType","abstract":"Unknown block type (not 0, 1 or 2).
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError11wrongSymbolFMS0_S0_":{"name":"wrongSymbol","abstract":"Decoded symbol was found in Huffman tree but is unknown.
","parent_name":"DeflateError"},"Enums/DeflateError.html#/s:FO13SWCompression12DeflateError14symbolNotFoundFMS0_S0_":{"name":"symbolNotFound","abstract":"Symbol wasn’t found in Huffman tree.
","parent_name":"DeflateError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method used in archive is different from Deflate, which is the only supported one.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError20wrongCompressionInfoFMS0_S0_":{"name":"wrongCompressionInfo","abstract":"Compression info has value incompatible with Deflate compression method.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError11wrongFcheckFMS0_S0_":{"name":"wrongFcheck","abstract":"First two bytes of archive’s flags are inconsistent with each other.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError21wrongCompressionLevelFMS0_S0_":{"name":"wrongCompressionLevel","abstract":"Compression level has value, which is different from the supported ones.
","parent_name":"ZlibError"},"Enums/ZlibError.html#/s:FO13SWCompression9ZlibError12wrongAdler32FMS0_FV10Foundation4DataS0_":{"name":"wrongAdler32","abstract":"Computed checksum of uncompressed data doesn’t match the value stored in archive.","parent_name":"ZlibError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError15wrongPropertiesFMS0_S0_":{"name":"wrongProperties","abstract":"
Properties’ byte is greater than 225.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError21rangeDecoderInitErrorFMS0_S0_":{"name":"rangeDecoderInitError","abstract":"Unable to initialize RanderDecorer.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError24exceededUncompressedSizeFMS0_S0_":{"name":"exceededUncompressedSize","abstract":"Size of uncompressed data hit specified limit in the middle of decoding.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError13windowIsEmptyFMS0_S0_":{"name":"windowIsEmpty","abstract":"Unable to perfrom repeat-distance decoding because there is nothing to repeat.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError23rangeDecoderFinishErrorFMS0_S0_":{"name":"rangeDecoderFinishError","abstract":"End of stream marker is reached, but range decoder is in incorrect state.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError16repeatWillExceedFMS0_S0_":{"name":"repeatWillExceed","abstract":"The number of bytes to repeat is greater than the amount bytes that is left to decode.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError17notEnoughToRepeatFMS0_S0_":{"name":"notEnoughToRepeat","abstract":"The amount of already decoded bytes is smaller than repeat length.
","parent_name":"LZMAError"},"Enums/LZMAError.html#/s:FO13SWCompression9LZMAError23decoderIsNotInitialisedFMS0_S0_":{"name":"decoderIsNotInitialised","abstract":"LZMADecoder wasn’t properly initialized before decoding data.
","parent_name":"LZMAError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError27notFoundCentralDirectoryEndFMS0_S0_":{"name":"notFoundCentralDirectoryEnd","abstract":"End of Central Directoty record wasn’t found.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError14wrongSignatureFMS0_S0_":{"name":"wrongSignature","abstract":"Wrong signature of one of container’s structures.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError9wrongSizeFMS0_S0_":{"name":"wrongSize","abstract":"Wrong either compressed or uncompressed size of a container’s entry.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError12wrongVersionFMS0_S0_":{"name":"wrongVersion","abstract":"Version needed to process container is unsupported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError24multiVolumesNotSupportedFMS0_S0_":{"name":"multiVolumesNotSupported","abstract":"Container is either spanned or consists of several volumes. These features aren’t supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError22encryptionNotSupportedFMS0_S0_":{"name":"encryptionNotSupported","abstract":"Entry or record is encrypted. This feature isn’t supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError20patchingNotSupportedFMS0_S0_":{"name":"patchingNotSupported","abstract":"Entry contains patched data. This feature isn’t supported.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError23compressionNotSupportedFMS0_S0_":{"name":"compressionNotSupported","abstract":"Entry is compressed using unsupported compression method.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError16wrongLocalHeaderFMS0_S0_":{"name":"wrongLocalHeader","abstract":"Local header of an entry is inconsistent with Central Directory.
","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError10wrongCRC32FMS0_FV10Foundation4DataS0_":{"name":"wrongCRC32","abstract":"Computed checksum of entry’s data doesn’t match the value stored in container.","parent_name":"ZipError"},"Enums/ZipError.html#/s:FO13SWCompression8ZipError14wrongTextFieldFMS0_S0_":{"name":"wrongTextField","abstract":"
Either entry’s comment or file name cannot be processed using UTF-8 encoding.
","parent_name":"ZipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongMagicFMS0_S0_":{"name":"wrongMagic","abstract":"First two bytes (‘magic’ number) of archive isn’t 31 and 139.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError22wrongCompressionMethodFMS0_S0_":{"name":"wrongCompressionMethod","abstract":"Compression method used in archive is different from Deflate, which is the only supported one.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongFlagsFMS0_S0_":{"name":"wrongFlags","abstract":"One of the reserved fields in archive has an unexpected value, which can also mean (apart from damaged archive),","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError14wrongHeaderCRCFMS0_S0_":{"name":"wrongHeaderCRC","abstract":"
Computed CRC of archive’s header doesn’t match the value stored in archive.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError8wrongCRCFMS0_FV10Foundation4DataS0_":{"name":"wrongCRC","abstract":"Computed checksum of uncompressed data doesn’t match the value stored in archive.","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError10wrongISizeFMS0_S0_":{"name":"wrongISize","abstract":"
Computed ‘isize’ didn’t match the value stored in the archive.
","parent_name":"GzipError"},"Enums/GzipError.html#/s:FO13SWCompression9GzipError21cannotEncodeISOLatin1FMS0_S0_":{"name":"cannotEncodeISOLatin1","abstract":"Either specified file name or comment cannot be encoded using ISO Latin-1 encoding.
","parent_name":"GzipError"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error15wrongPropertiesFMS0_S0_":{"name":"wrongProperties","abstract":"Reserved bits of LZMA2 properties’ byte aren’t equal to zero.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error19wrongDictionarySizeFMS0_S0_":{"name":"wrongDictionarySize","abstract":"Dictionary size is too big.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error16wrongControlByteFMS0_S0_":{"name":"wrongControlByte","abstract":"Unknown conrol byte value of LZMA2 packet.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error10wrongResetFMS0_S0_":{"name":"wrongReset","abstract":"Unknown reset instruction encountered in LZMA2 packet.
","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html#/s:FO13SWCompression10LZMA2Error10wrongSizesFMS0_S0_":{"name":"wrongSizes","abstract":"Either size of decompressed data isn’t equal to the one specified in LZMA2 packet or","parent_name":"LZMA2Error"},"Enums/LZMA2Error.html":{"name":"LZMA2Error","abstract":"
Represents an error, which happened during LZMA2 decompression."},"Enums/GzipError.html":{"name":"GzipError","abstract":"
Represents an error, which happened during processing GZip archive."},"Enums/ZipError.html":{"name":"ZipError","abstract":"
Represents an error, which happened during processing ZIP container."},"Enums/LZMAError.html":{"name":"LZMAError","abstract":"
Represents an error, which happened during LZMA decompression."},"Enums/ZlibError.html":{"name":"ZlibError","abstract":"
Represents an error, which happened during processing Zlib archive."},"Enums/DeflateError.html":{"name":"DeflateError","abstract":"
Represents an error, which happened during Deflate compression or decompression."},"Enums/BZip2Error.html":{"name":"BZip2Error","abstract":"
Represents an error, which happened during BZip2 decompression."},"Enums/TarError.html":{"name":"TarError","abstract":"
Represents an error, which happened during processing TAR container."},"Enums/XZError.html":{"name":"XZError","abstract":"
Represents an error, which happened during unarchiving XZ archive."},"Classes/XZArchive.html#/s:ZFC13SWCompression9XZArchive9unarchiveFzT7archiveV10Foundation4Data_S2_":{"name":"unarchive(archive:)","abstract":"
Unarchives XZ archive.
","parent_name":"XZArchive"},"Classes/TarContainer.html#/s:ZFC13SWCompression12TarContainer4openFzT9containerV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(container:)","abstract":"Processes TAR container and returns an array of ContainerEntries (which are actually TarEntries).
","parent_name":"TarContainer"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType6normalFMS1_S1_":{"name":"normal","abstract":"Normal file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType8hardLinkFMS1_S1_":{"name":"hardLink","abstract":"Hard linked entry.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType12symbolicLinkFMS1_S1_":{"name":"symbolicLink","abstract":"Symbolically linked entry.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType16characterSpecialFMS1_S1_":{"name":"characterSpecial","abstract":"Character special file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType12blockSpecialFMS1_S1_":{"name":"blockSpecial","abstract":"Block special file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType9directoryFMS1_S1_":{"name":"directory","abstract":"Directory.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType4fifoFMS1_S1_":{"name":"fifo","abstract":"FIFO special file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType10contiguousFMS1_S1_":{"name":"contiguous","abstract":"Contiguous file.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType20globalExtendedHeaderFMS1_S1_":{"name":"globalExtendedHeader","abstract":"PAX global extended header. (Should not be encountered separately).
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType19localExtendedHeaderFMS1_S1_":{"name":"localExtendedHeader","abstract":"PAX local extended header. (Should not be encountered separately).
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html#/s:FOC13SWCompression8TarEntry9EntryType23vendorUnknownOrReservedFMS1_S1_":{"name":"vendorUnknownOrReserved","abstract":"Either unknown type, vendor specific or reserved value.
","parent_name":"EntryType"},"Classes/TarEntry/EntryType.html":{"name":"EntryType","abstract":"Represents a type of an entry.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4nameSS":{"name":"name","abstract":"Name of the file or directory.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry11isDirectorySb":{"name":"isDirectory","abstract":"True, if an entry is a directory.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4sizeSi":{"name":"size","abstract":"Size of the data associated with the entry.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4modeGSqSi_":{"name":"mode","abstract":"File mode.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7ownerIDGSqSi_":{"name":"ownerID","abstract":"Owner’s ID.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7groupIDGSqSi_":{"name":"groupID","abstract":"Owner’s group ID.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry16modificationTimeV10Foundation4Date":{"name":"modificationTime","abstract":"The most recent modification time of the original file or directory.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry4typeOS0_9EntryType":{"name":"type","abstract":"Type of entry.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry13ownerUserNameGSqSS_":{"name":"ownerUserName","abstract":"Owner’s user name.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry14ownerGroupNameGSqSS_":{"name":"ownerGroupName","abstract":"Owner’s group name.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry10accessTimeGSqV10Foundation4Date_":{"name":"accessTime","abstract":"The most recent access time of the original file or directory (PAX only).
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7charsetGSqSS_":{"name":"charset","abstract":"Name of the character set used to encode entry’s data (PAX only).
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry7commentGSqSS_":{"name":"comment","abstract":"Comment associated with the entry (PAX only).
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry8linkPathGSqSS_":{"name":"linkPath","abstract":"Path to linked entry (PAX only).
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:vC13SWCompression8TarEntry28unknownExtendedHeaderEntriesGVs10DictionarySSSS_":{"name":"unknownExtendedHeaderEntries","abstract":"Other entries from PAX extended headers.
","parent_name":"TarEntry"},"Classes/TarEntry.html#/s:FC13SWCompression8TarEntry4dataFT_V10Foundation4Data":{"name":"data()","abstract":"Returns data associated with this entry.
","parent_name":"TarEntry"},"Classes/BZip2.html#/s:ZFC13SWCompression5BZip210decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"Decompresses data using BZip2 algortihm.
","parent_name":"BZip2"},"Classes/Deflate.html#/s:ZFC13SWCompression7Deflate10decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"Decompresses data using Deflate algortihm.
","parent_name":"Deflate"},"Classes/Deflate.html#/s:ZFC13SWCompression7Deflate8compressFzT4dataV10Foundation4Data_S2_":{"name":"compress(data:)","abstract":"Compresses data with Deflate algortihm.
","parent_name":"Deflate"},"Classes/ZlibArchive.html#/s:ZFC13SWCompression11ZlibArchive9unarchiveFzT7archiveV10Foundation4Data_S2_":{"name":"unarchive(archive:)","abstract":"Unarchives Zlib archive.
","parent_name":"ZlibArchive"},"Classes/ZlibArchive.html#/s:ZFC13SWCompression11ZlibArchive7archiveFzT4dataV10Foundation4Data_S2_":{"name":"archive(data:)","abstract":"Archives data into Zlib archive.","parent_name":"ZlibArchive"},"Classes/LZMA.html#/s:ZFC13SWCompression4LZMA10decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"
Decompresses data using LZMA algortihm.
","parent_name":"LZMA"},"Classes/ZipContainer.html#/s:ZFC13SWCompression12ZipContainer4openFzT9containerV10Foundation4Data_GSaPS_14ContainerEntry__":{"name":"open(container:)","abstract":"Processes ZIP container and returns an array of ContainerEntries (which are actually ZipEntries).
","parent_name":"ZipContainer"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry4nameSS":{"name":"name","abstract":"Name of the file or directory.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry7commentGSqSS_":{"name":"comment","abstract":"Comment associated with the entry.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry10attributesVs6UInt32":{"name":"attributes","abstract":"File or directory attributes related to the file system of the container’s creator.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry4sizeSi":{"name":"size","abstract":"Size of the data associated with the entry.
","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:vC13SWCompression8ZipEntry11isDirectorySb":{"name":"isDirectory","abstract":"True, if an entry is a directory.","parent_name":"ZipEntry"},"Classes/ZipEntry.html#/s:FC13SWCompression8ZipEntry4dataFzT_V10Foundation4Data":{"name":"data()","abstract":"
Returns data associated with this entry.
","parent_name":"ZipEntry"},"Classes/GzipArchive.html#/s:ZFC13SWCompression11GzipArchive9unarchiveFzT7archiveV10Foundation4Data_S2_":{"name":"unarchive(archive:)","abstract":"Unarchives GZip archive.
","parent_name":"GzipArchive"},"Classes/GzipArchive.html#/s:ZFC13SWCompression11GzipArchive7archiveFzT4dataV10Foundation4Data7commentGSqSS_8fileNameGSqSS_14writeHeaderCRCSb10isTextFileSb6osTypeGSqOVS_10GzipHeader14FileSystemType_16modificationTimeGSqVS1_4Date__S2_":{"name":"archive(data:comment:fileName:writeHeaderCRC:isTextFile:osType:modificationTime:)","abstract":"Archives data into GZip archive, using various specified options.","parent_name":"GzipArchive"},"Classes/LZMA2.html#/s:ZFC13SWCompression5LZMA210decompressFzT4dataV10Foundation4Data_S2_":{"name":"decompress(data:)","abstract":"
Decompresses data using LZMA2 algortihm.
","parent_name":"LZMA2"},"Classes/LZMA2.html":{"name":"LZMA2","abstract":"Provides decompression function for LZMA2 algorithm.
"},"Classes/GzipArchive.html":{"name":"GzipArchive","abstract":"Provides unarchive and archive functions for GZip archives.
"},"Classes/ZipEntry.html":{"name":"ZipEntry","abstract":"Represents either a file or directory entry in ZIP container.
"},"Classes/ZipContainer.html":{"name":"ZipContainer","abstract":"Provides open function for ZIP containers.
"},"Classes/LZMA.html":{"name":"LZMA","abstract":"Provides decompression function for LZMA algorithm.
"},"Classes/ZlibArchive.html":{"name":"ZlibArchive","abstract":"Provides unarchive and archive functions for Zlib archives.
"},"Classes/Deflate.html":{"name":"Deflate","abstract":"Provides compression and decompression functions for Deflate algorithm.
"},"Classes/BZip2.html":{"name":"BZip2","abstract":"Provides decompression function for BZip2 algorithm.
"},"Classes/TarEntry.html":{"name":"TarEntry","abstract":"Represents either a file or directory entry in TAR container.
"},"Classes/TarContainer.html":{"name":"TarContainer","abstract":"Provides open function for TAR containers.
"},"Classes/XZArchive.html":{"name":"XZArchive","abstract":"Provides unarchive function for XZ archives.
"},"Classes.html":{"name":"Classes","abstract":"The following classes are available globally.
"},"Enums.html":{"name":"Enums","abstract":"The following enums are available globally.
"},"Protocols.html":{"name":"Protocols","abstract":"The following protocols are available globally.
"},"Structs.html":{"name":"Structs","abstract":"The following structs are available globally.
"}}
\ No newline at end of file
diff --git a/docs/undocumented.json b/docs/undocumented.json
index 3ffe176b..1862018e 100644
--- a/docs/undocumented.json
+++ b/docs/undocumented.json
@@ -1,292 +1,6 @@
{
"warnings": [
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/Protocols.swift",
- "line": 27,
- "symbol": "Container",
- "symbol_kind": "source.lang.swift.decl.protocol",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/Protocols.swift",
- "line": 29,
- "symbol": "Container.open(containerData:)",
- "symbol_kind": "source.lang.swift.decl.function.method.static",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/Protocols.swift",
- "line": 33,
- "symbol": "ContainerEntry",
- "symbol_kind": "source.lang.swift.decl.protocol",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/Protocols.swift",
- "line": 35,
- "symbol": "ContainerEntry.name",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/Protocols.swift",
- "line": 36,
- "symbol": "ContainerEntry.size",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/Protocols.swift",
- "line": 37,
- "symbol": "ContainerEntry.isDirectory",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/Protocols.swift",
- "line": 39,
- "symbol": "ContainerEntry.data()",
- "symbol_kind": "source.lang.swift.decl.function.method.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 18,
- "symbol": "TarError.tooSmallFileIsPassed",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 19,
- "symbol": "TarError.fieldIsNotNumber",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 20,
- "symbol": "TarError.wrongHeaderChecksum",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 21,
- "symbol": "TarError.wrongUstarVersion",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 22,
- "symbol": "TarError.wrongPaxHeaderEntry",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 28,
- "symbol": "TarEntry.EntryType",
- "symbol_kind": "source.lang.swift.decl.enum",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 29,
- "symbol": "TarEntry.EntryType.normal",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 30,
- "symbol": "TarEntry.EntryType.hardLink",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 31,
- "symbol": "TarEntry.EntryType.symbolicLink",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 32,
- "symbol": "TarEntry.EntryType.characterSpecial",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 33,
- "symbol": "TarEntry.EntryType.blockSpecial",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 34,
- "symbol": "TarEntry.EntryType.directory",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 35,
- "symbol": "TarEntry.EntryType.fifo",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 36,
- "symbol": "TarEntry.EntryType.contiguous",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 37,
- "symbol": "TarEntry.EntryType.globalExtendedHeader",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 38,
- "symbol": "TarEntry.EntryType.localExtendedHeader",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 39,
- "symbol": "TarEntry.EntryType.vendorUnknownOrReserved",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 47,
- "symbol": "TarEntry.isDirectory",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 51,
- "symbol": "TarEntry.mode",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 52,
- "symbol": "TarEntry.ownerID",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 53,
- "symbol": "TarEntry.groupID",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 54,
- "symbol": "TarEntry.size",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 55,
- "symbol": "TarEntry.modificationTime",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 56,
- "symbol": "TarEntry.type",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 58,
- "symbol": "TarEntry.ownerUserName",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 59,
- "symbol": "TarEntry.ownerGroupName",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 69,
- "symbol": "TarEntry.accessTime",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 70,
- "symbol": "TarEntry.charset",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 71,
- "symbol": "TarEntry.comment",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 72,
- "symbol": "TarEntry.linkPath",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 73,
- "symbol": "TarEntry.unknownExtendedHeaderEntries",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/TarContainer.swift",
- "line": 293,
- "symbol": "TarContainer.open(containerData:)",
- "symbol_kind": "source.lang.swift.decl.function.method.static",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 51,
- "symbol": "ZipError.wrongTextField",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 75,
- "symbol": "ZipEntry.size",
- "symbol_kind": "source.lang.swift.decl.var.instance",
- "warning": "undocumented"
- }
+
],
"source_directory": "/Users/timofeysolomko/Developer/SWCompression"
}
\ No newline at end of file