mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
28 lines
563 B
Swift
28 lines
563 B
Swift
// Copyright (c) 2026 Timofey Solomko
|
|
// Licensed under MIT License
|
|
//
|
|
// See LICENSE for license information
|
|
|
|
import SWCompression
|
|
|
|
extension CompressionMethod: CustomStringConvertible {
|
|
|
|
public var description: String {
|
|
switch self {
|
|
case .bzip2:
|
|
return "BZip2"
|
|
case .copy:
|
|
return "none"
|
|
case .deflate:
|
|
return "deflate"
|
|
case .lzma:
|
|
return "LZMA"
|
|
case .lzma2:
|
|
return "LZMA2"
|
|
case .other:
|
|
return "other/unknown"
|
|
}
|
|
}
|
|
|
|
}
|