node/lib/metasm/metasm/exe_format/zip.rb
# add a new file to the zip archive
add a new file to the zip archive
add a new file to the zip archive
def add_file(fname, data, compress=:auto)
		f = CentralHeader.new
		case compress
		when 'NONE', false; f.compress_method = 'NONE'
		when 'DEFLATE', true; f.compress_method = 'DEFLATE'
		end
		f.fname = fname
		f.data = data
		@files << f
		f
	end
def add_file ( fname , data , compress = :auto ) f = CentralHeader . new case compress when 'NONE' , false ; f . compress_method = 'NONE' when 'DEFLATE' , true ; f . compress_method = 'DEFLATE' end f . fname = fname f . data = data @files << f f end
add a new file to the zip archive
add a new file to the zip archive
fname
data
compress