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.
64 65 66 |
# File 'lib/rex/zip/blocks.rb', line 64 def initialize(compinfo) @compinfo = compinfo end |
Instance Method Details
#pack ⇒ Object
68 69 70 71 72 |
# File 'lib/rex/zip/blocks.rb', line 68 def pack ret = [ SIGNATURE ].pack('V') ret << @compinfo.pack ret end |