CompressionLevel

public struct CompressionLevel : RawRepresentable

Compression level whose rawValue is based on the zlib’s constants.

  • Compression level in the range of 0 (no compression) to 9 (maximum compression).

    Declaration

    Swift

    public let rawValue: Int32
  • Declaration

    Swift

    public static let noCompression: CompressionLevel
  • Declaration

    Swift

    public static let bestSpeed: CompressionLevel
  • Declaration

    Swift

    public static let bestCompression: CompressionLevel
  • Declaration

    Swift

    public static let defaultCompression: CompressionLevel
  • Declaration

    Swift

    public init(rawValue: Int32)
  • Declaration

    Swift

    public init(_ rawValue: Int32)