SwiftZip Documentation Beta

Structure Zip​Stat.​Compression​Method

public struct CompressionMethod: RawRepresentable, Equatable

A compression algorithm.

%3 ZipStat.CompressionMethod ZipStat.CompressionMethod Equatable Equatable ZipStat.CompressionMethod->Equatable RawRepresentable RawRepresentable ZipStat.CompressionMethod->RawRepresentable

Member Of

ZipStat

Properties of the archive etry.

Conforms To

Equatable
RawRepresentable

Initializers

init(raw​Value:​)

public init(rawValue: Int32)

Properties

raw​Value

let rawValue: Int32

`default`

let `default`

default compression; currently the same as deflate, but flags are ignored.

store

let store

Store the file uncompressed.

shrink

let shrink

Not supported by libzip/SwiftZip

reduce1

let reduce1

Not supported by libzip/SwiftZip

reduce2

let reduce2

Not supported by libzip/SwiftZip

reduce3

let reduce3

Not supported by libzip/SwiftZip

reduce4

let reduce4

Not supported by libzip/SwiftZip

implode

let implode

Not supported by libzip/SwiftZip

deflate

let deflate

Deflate the file with the zlib(3) algorithm and default options.

deflate64

let deflate64

Not supported by libzip/SwiftZip

pkware​Implode

let pkwareImplode

Not supported by libzip/SwiftZip

bzip2

let bzip2

Compress the file using the bzip2(1) algorithm.

lzma

let lzma

Not supported by libzip/SwiftZip

terse

let terse

Not supported by libzip/SwiftZip

lz77

let lz77

Not supported by libzip/SwiftZip

lzma2

let lzma2

Not supported by libzip/SwiftZip

xz

let xz

Not supported by libzip/SwiftZip

jpeg

let jpeg

Not supported by libzip/SwiftZip

wavpack

let wavpack

Not supported by libzip/SwiftZip

ppmd

let ppmd

Not supported by libzip/SwiftZip