Class: Rex::Zip::CompInfo

Inherits:
Object
  • Object
show all
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

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

#packObject



20
21
22
# File 'lib/rex/zip/blocks.rb', line 20

def pack
  [ @crc, @compsz, @uncompsz ].pack('VVV')
end