CompressionStrategy

public enum CompressionStrategy : Int32

The strategy parameter for zlib compression. The strategy is used to tune the compression algorithm, it affects the compression ratio but not the correctness of the compressed output. For more information, see zlib manual.

  • The default strategy (for normal data).

    Declaration

    Swift

    case defaultStrategy = 0
  • Force more Huffman coding and less string matching.

    Declaration

    Swift

    case filtered = 1
  • Force Huffman encoding only (no string match).

    Declaration

    Swift

    case huffmanOnly = 2
  • rle

    Limit match distances to one (run-length encoding).

    Declaration

    Swift

    case rle = 3
  • Prevent the use of dynamic Huffman codes.

    Declaration

    Swift

    case fixed = 4