Class: Zip::ExtraField::Zip64Placeholder
- Defined in:
- lib/zip/extra_field/zip64_placeholder.rb
Overview
placeholder to reserve space for a Zip64 extra information record, for the local file header only, that we won’t know if we’ll need until after we write the file data
Constant Summary collapse
- HEADER_ID =
this ID is used by other libraries such as .NET’s Ionic.zip
['9999'].pack('H*')
Instance Method Summary collapse
-
#initialize(_binstr = nil) ⇒ Zip64Placeholder
constructor
A new instance of Zip64Placeholder.
- #pack_for_local ⇒ Object
Methods inherited from Generic
#==, #initial_parse, name, register_map, #to_c_dir_bin, #to_local_bin
Constructor Details
#initialize(_binstr = nil) ⇒ Zip64Placeholder
Returns a new instance of Zip64Placeholder.
9 10 |
# File 'lib/zip/extra_field/zip64_placeholder.rb', line 9 def initialize(_binstr = nil) end |
Instance Method Details
#pack_for_local ⇒ Object
12 13 14 |
# File 'lib/zip/extra_field/zip64_placeholder.rb', line 12 def pack_for_local "\x00" * 16 end |