Module: Omnizip::Formats::SevenZip::Constants::MethodId

Defined in:
lib/omnizip/formats/seven_zip/constants.rb

Overview

Method IDs for compression algorithms

Constant Summary collapse

COPY =

Compression methods

0x00
LZMA =
0x030101
LZMA2 =
0x21
PPMD =
0x030401
BZIP2 =
0x040202
DEFLATE =
0x040108
DEFLATE64 =
0x040109
AES =

Crypto methods

0x06F10701

Class Method Summary collapse

Class Method Details

.name(id) ⇒ Object



60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/omnizip/formats/seven_zip/constants.rb', line 60

def self.name(id)
  case id
  when COPY then "Copy"
  when LZMA then "LZMA"
  when LZMA2 then "LZMA2"
  when PPMD then "PPMd"
  when BZIP2 then "BZip2"
  when DEFLATE then "Deflate"
  when DEFLATE64 then "Deflate64"
  when AES then "AES256"
  else "Unknown(0x#{id.to_s(16)})"
  end
end