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.
-
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
View on GitHub
BZip2Error Enum Reference