Class: Omnizip::Formats::Rar::Rar5::Compression::Store
- Inherits:
-
Object
- Object
- Omnizip::Formats::Rar::Rar5::Compression::Store
- Defined in:
- lib/omnizip/formats/rar/rar5/compression/store.rb
Overview
STORE compression method (uncompressed)
This is the simplest compression method - it stores data without any compression. The "compressed" size equals the original size.
Constant Summary collapse
- METHOD =
Compression method identifier
0
Class Method Summary collapse
-
.compress(data, _options = {}) ⇒ String
Compress data (passthrough for STORE).
-
.compression_info ⇒ Integer
Get compression info VINT value.
-
.decompress(data, _options = {}) ⇒ String
Decompress data (passthrough for STORE).
-
.method_id ⇒ Integer
Get compression method identifier.
Class Method Details
.compress(data, _options = {}) ⇒ String
Compress data (passthrough for STORE)
25 26 27 |
# File 'lib/omnizip/formats/rar/rar5/compression/store.rb', line 25 def self.compress(data, = {}) data end |
.compression_info ⇒ Integer
Get compression info VINT value
For STORE, this is just the method ID (0) Bits 0-5: method (0=STORE) Bits 6+: version (0 for STORE)
52 53 54 |
# File 'lib/omnizip/formats/rar/rar5/compression/store.rb', line 52 def self.compression_info METHOD end |
.decompress(data, _options = {}) ⇒ String
Decompress data (passthrough for STORE)
34 35 36 |
# File 'lib/omnizip/formats/rar/rar5/compression/store.rb', line 34 def self.decompress(data, = {}) data end |
.method_id ⇒ Integer
Get compression method identifier
41 42 43 |
# File 'lib/omnizip/formats/rar/rar5/compression/store.rb', line 41 def self.method_id METHOD end |