node/lib/metasm/metasm/exe_format/zip.rb
def encode_entry(f, edata, central_dir)
		f.localhdr_off = edata.length

		# may autodetect compression method
		raw = f.encode_data(self)

		zipalign(f, edata)

		central_dir << f.encode(self)	# calls f.set_default_values

		l = LocalHeader.from_central(f)
		edata << l.encode(self)

		edata << raw
	end
# add one file to the zip stream
add one file to the zip stream
add one file to the zip stream
def encode_entry(f, edata, central_dir)
		f.localhdr_off = edata.length
		raw = f.encode_data(self)
		zipalign(f, edata)
		central_dir << f.encode(self)	
		l = LocalHeader.from_central(f)
		edata << l.encode(self)
		edata << raw
	end
def encode_entry ( f , edata , central_dir ) f . localhdr_off = edata . length raw = f . encode_data ( self ) zipalign ( f , edata ) central_dir << f . encode ( self ) l = LocalHeader . from_central ( f ) edata << l . encode ( self ) edata << raw end
add one file to the zip stream
add one file to the zip stream
# may autodetect compression method # calls f.set_default_values
f
edata
central_dir