class Rex::Zip::LocalFileHdr
This structure records the compression data and flags about a Zip entry to a file.
Constants
- SIGNATURE
Public Class Methods
new(entry)
click to toggle source
# File lib/rex/zip/blocks.rb, line 82 def initialize(entry) @entry = entry end
Public Instance Methods
pack()
click to toggle source
# File lib/rex/zip/blocks.rb, line 86 def pack path = @entry.relative_path ret = [ SIGNATURE, ZIP_VERSION ].pack('Vv') ret << @entry.flags.pack ret << @entry.info.pack ret << [ path.length, @entry.xtra.length ].pack('vv') ret << path ret << @entry.xtra ret end