BZip2Error
public enum BZip2Error: Error
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.
-
Magic number was not 0x425a.
Declaration
Swift
case wrongMagic
-
Compression method was not type ‘h’ (not Huffman).
Declaration
Swift
case wrongCompressionMethod
-
Unknown block size (not from ‘0’ to ‘9’).
Declaration
Swift
case wrongBlockSize
-
Unknown block type (was neither ‘pi’ nor ‘sqrt(pi)’).
Declaration
Swift
case wrongBlockType
-
Block is randomized.
Declaration
Swift
case randomizedBlock
-
Wrong number of Huffman tables/groups (should be between 2 and 6).
Declaration
Swift
case wrongHuffmanGroups
-
Selector was greater than total number of Huffman tables/groups.
Declaration
Swift
case wrongSelector
-
Wrong code of Huffman length (should be between 0 and 20).
Declaration
Swift
case wrongHuffmanLengthCode
-
Symbol was not found in Huffman tree.
Declaration
Swift
case symbolNotFound
-
Computed CRC of uncompressed data didn’t match the value stored in the archive. Associated value contains already decompressed data.
Declaration
Swift
case wrongCRC(Data)
View on GitHub
BZip2Error Enum Reference