Class: Rex::Zip::DataDesc
- Inherits:
-
Object
- Object
- Rex::Zip::DataDesc
- Defined in:
- lib/rex/zip/blocks.rb
Overview
This structure is sometimes stored after the file data and used instead of the fields within the Local File Header.
Constant Summary collapse
- SIGNATURE =
0x8074b50
Instance Method Summary collapse
-
#initialize(compinfo) ⇒ DataDesc
constructor
A new instance of DataDesc.
- #pack ⇒ Object
Constructor Details
#initialize(compinfo) ⇒ DataDesc
Returns a new instance of DataDesc.
62 63 64 |
# File 'lib/rex/zip/blocks.rb', line 62 def initialize(compinfo) @compinfo = compinfo end |
Instance Method Details
#pack ⇒ Object
66 67 68 69 70 |
# File 'lib/rex/zip/blocks.rb', line 66 def pack ret = [ SIGNATURE ].pack('V') ret << @compinfo.pack ret end |