18 lines
495 B
Ruby
18 lines
495 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Zip
|
|
# 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
|
|
class ExtraField::Zip64Placeholder < ExtraField::Generic
|
|
HEADER_ID = ['9999'].pack('H*') # this ID is used by other libraries such as .NET's Ionic.zip
|
|
register_map
|
|
|
|
def initialize(_binstr = nil); end
|
|
|
|
def pack_for_local
|
|
"\x00" * 16
|
|
end
|
|
end
|
|
end
|