From a63cfd89ab6070e8c75b29535a615679552da764 Mon Sep 17 00:00:00 2001
From: Paul Duncan Internal class used to store files for You should not need to instantiate this class directly; use
-Writer
instance.Writer#add_dir
instead.Writer#add_dir
instead.
Create a new DirEntry instance.
Zip::Writers::WriterEntry
Zip::Writers::WriterEntry
Create a new DirEntry instance.
You should not need to call this method directly; use
-Writer#add_dir
instead.
Writer#add_dir
instead.Internal class used to store files for Writer
instance.
You should not need to call this method directly; it is called
-automatically by Writer#add
and Writer#add_file
.
You should not need to instantiate this class directly; it is
+called automatically by Writer#add
and Writer#add_file
.
-
- .new(pos : UInt32, path : String, io : IO, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "")
+ .new(pos : UInt64, path : String, io : IO, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", zip64 : Bool = false)
Create a new FileWriterEntry instance.
@@ -223,8 +238,8 @@ automatically by Zip::Writers::WriterEntry
-
- to_s(dst_io) : UInt32
+
+ to_s(dst_io) : UInt64
to_s,
@@ -238,9 +253,14 @@ automatically by
- write_footer(io : IO, crc : UInt32, src_len : UInt32, dst_len : UInt32) : UInt32
- write_footer
+
+ write_footer(io : IO, crc : UInt32, src_len : UInt64, dst_len : UInt64, zip64 : Bool) : UInt32
+ write_footer,
+
+
+
+ zip64? : Bool
+ zip64?
@@ -250,8 +270,8 @@ automatically by Zip::Writers::WriterEntry
-
- new(pos : UInt32, path : String, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", flags : GeneralFlags = GeneralFlags.flags, external : UInt32 = 0_u32)
+
+ new(pos : UInt64, path : String, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", flags : GeneralFlags = GeneralFlags.flags, external : UInt32 = 0_u32, zip64 : Bool = false)
new
@@ -284,18 +304,18 @@ automatically by
+
- def self.new(pos : UInt32, path : String, io : IO, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "")
+ def self.new(pos : UInt64, path : String, io : IO, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", zip64 : Bool = false)
- #
+ #
Create a new FileWriterEntry instance.
You should not need to call this method directly; it is called
-automatically by Writer#add
and Writer#add_file
.
+automatically by Writer#add
and Writer#add_file
.
diff --git a/Zip/Writers/WriterEntry.html b/Zip/Writers/WriterEntry.html
index 9442e7a..274414d 100644
--- a/Zip/Writers/WriterEntry.html
+++ b/Zip/Writers/WriterEntry.html
@@ -50,9 +50,24 @@
- -
+
-
Extra
+
+
+
-
@@ -177,7 +192,9 @@ for
Writer
instance.
-
- .new(pos : UInt32, path : String, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", flags : GeneralFlags = GeneralFlags.flags, external : UInt32 = 0_u32)
+ .new(pos : UInt64, path : String, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", flags : GeneralFlags = GeneralFlags.flags, external : UInt32 = 0_u32, zip64 : Bool = false)
+
+
Constructor for abstract WriterEntry
class.
@@ -189,7 +206,7 @@ for Writer
instance.
-
- #to_s(dst_io) : UInt32
+ #to_s(dst_io) : UInt64
Write local file entry to IO and return the number of bytes written.
@@ -208,7 +225,14 @@ for Writer
instance.
-
- #write_footer(io : IO, crc : UInt32, src_len : UInt32, dst_len : UInt32) : UInt32
+ #write_footer(io : IO, crc : UInt32, src_len : UInt64, dst_len : UInt64, zip64 : Bool) : UInt32
+
+
+
+ -
+ #zip64? : Bool
+
+
Is this a Zip64 entry?
@@ -246,14 +270,18 @@ for Writer
instance.
Class Method Detail
-
+
- def self.new(pos : UInt32, path : String, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", flags : GeneralFlags = GeneralFlags.flags, external : UInt32 = 0_u32)
+ def self.new(pos : UInt64, path : String, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "", flags : GeneralFlags = GeneralFlags.flags, external : UInt32 = 0_u32, zip64 : Bool = false)
- #
+ #
+ Constructor for abstract WriterEntry
class. You cannot
+instantiate this class directly; use Writer#add()
,
+Writer#add_file()
or `Writer#add_dir() instead.
+
@@ -265,19 +293,19 @@ for Writer
instance.
Instance Method Detail
-
+
Write local file entry to IO and return the number of bytes
written.
You should not need to call this method directly; it is called
-automatically by Writer#add
and Writer#add_file
.
+automatically by Writer#add
and Writer#add_file
.
@@ -319,13 +347,29 @@ automatically by Wri
-