LZMAProperties

public struct LZMAProperties

Properties of LZMA. This API is intended to be used by advanced users.

  • lc

    Number of bits used for the literal encoding context. Default value is 3.

    Declaration

    Swift

    public var lc: Int
  • lp

    Number of bits to include in “literal position state”. Default value is 0.

    Declaration

    Swift

    public var lp: Int
  • pb

    Number of bits to include in “position state”. Default value is 2.

    Declaration

    Swift

    public var pb: Int
  • Size of the dictionary. Default value is 1 << 24.

    Note

    Dictionary size cannot be less than 4096. In case of attempt to set it to the value less than 4096 it will be automatically set to 4096 instead.

    Declaration

    Swift

    public var dictionarySize: Int { get set }
  • Initializes LZMA properties with values of lc, lp, pb, and dictionary size.

    Note

    It is not tested if values of lc, lp, and pb are valid.

    Declaration

    Swift

    public init(lc: Int, lp: Int, pb: Int, dictionarySize: Int)
  • Initializes LZMA properties with default values of lc, lp, pb, and dictionary size.

    Declaration

    Swift

    public init()