Class: Zip::ExtraField::Zip64Placeholder

Inherits:
Generic
  • Object
show all
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

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_localObject



12
13
14
# File 'lib/zip/extra_field/zip64_placeholder.rb', line 12

def pack_for_local
  "\x00" * 16
end