From a63cfd89ab6070e8c75b29535a615679552da764 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 13 Aug 2016 14:31:15 -0400 Subject: update documentation --- Zip/Extra/Base.html | 401 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 401 insertions(+) create mode 100644 Zip/Extra/Base.html (limited to 'Zip/Extra/Base.html') diff --git a/Zip/Extra/Base.html b/Zip/Extra/Base.html new file mode 100644 index 0000000..fc9fcc9 --- /dev/null +++ b/Zip/Extra/Base.html @@ -0,0 +1,401 @@ + + + + + + + + Zip::Extra::Base - github.com/pablotron/zip-crystal + + + +
+ + + + + + +
+ +
+

+ + class Zip::Extra::Base + +

+ + + + + + + +

Overview

+ +

Raw extra data associated with Entry.

+ +

You should not need to instantiate this class directly; use +Zip::Entry#extras or Zip::Entry#local_extras instead.

+ +

Example:

+ +
# open "foo.zip"
+Zip.read("foo.zip") do |zip|
+  # get extra data associated with "bar.txt"
+  extras = zip["bar.txt"].extras
+end
+ + + + + + + + + +

Direct Known Subclasses

+ + + + + + + +

Defined in:

+ + + + + + +

Class Method Summary

+ + + + +

Instance Method Summary

+ + + + + + +
+ + + + + + + + + + + + + + + +
+ + +

Class Method Detail

+ +
+
+ + def self.new(code : UInt16, data : Bytes) + + # +
+ +

Create a new raw extra data entry.

+ +

You should not need to instantiate this class directly; it is +created as-needed by Writer#add.

+ +
+
+ +
+
+ + + + +

Instance Method Detail

+ +
+
+ + def bytes_needed : UInt16 + + # +
+ +

Return number of bytes needed for this Extra.

+ +
+
+ +
+
+ +
+
+ + def code : UInt16 + + # +
+ +

Identifier for this extra entry.

+ +
+
+ +
+
+ +
+
+ + def code=(code) + + # +
+ +

Identifier for this extra entry.

+ +
+
+ +
+
+ +
+
+ + def data : Slice(UInt8) + + # +
+ +

Data for this extra entry.

+ +
+
+ +
+
+ +
+
+ + def data=(data) + + # +
+ +

Data for this extra entry.

+ +
+
+ +
+
+ +
+
+ + def to_s(io) : UInt16 + + # +
+ +
+
+ +
+
+ + + + + +
+ + + -- cgit v1.2.3