Method: Zip::ZipEntry#write_local_entry
- Defined in:
- lib/ruby_archive/handlers/rubyzip/zip/zip.rb
#write_local_entry(io) ⇒ Object
:nodoc:all
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/ruby_archive/handlers/rubyzip/zip/zip.rb', line 567 def write_local_entry(io) #:nodoc:all @localHeaderOffset = io.tell io << [LOCAL_ENTRY_SIGNATURE , VERSION_NEEDED_TO_EXTRACT , # version needed to extract 0 , # @gp_flags , @compression_method , @time.to_binary_dos_time , # @lastModTime , @time.to_binary_dos_date , # @lastModDate , @crc , @compressed_size , @size , @name ? @name.length : 0, @extra? @extra.local_length : 0 ].pack('VvvvvvVVVvv') io << @name io << (@extra ? @extra.to_local_bin : "") end |