Parent

Methods

Class/Module Index [+]

Quicksearch

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 85
def initialize(entry)
        @entry = entry
end

Public Instance Methods

pack() click to toggle source
# File lib/rex/zip/blocks.rb, line 89
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.