Class: Rex::Zip::CompInfo
- Inherits:
-
Object
- Object
- Rex::Zip::CompInfo
- Defined in:
- lib/rex/zip/blocks.rb
Overview
This structure holds the following data pertaining to a Zip entry’s data.
data crc compressed size uncompressed size
Instance Method Summary collapse
-
#initialize(crc, compsz, uncompsz) ⇒ CompInfo
constructor
A new instance of CompInfo.
- #pack ⇒ Object
Constructor Details
#initialize(crc, compsz, uncompsz) ⇒ CompInfo
Returns a new instance of CompInfo.
16 17 18 |
# File 'lib/rex/zip/blocks.rb', line 16 def initialize(crc, compsz, uncompsz) @crc, @compsz, @uncompsz = crc, compsz, uncompsz end |
Instance Method Details
#pack ⇒ Object
20 21 22 |
# File 'lib/rex/zip/blocks.rb', line 20 def pack [ @crc, @compsz, @uncompsz ].pack('VVV') end |