class Zip::Version

Overview

Version identifier used to identify the version needed to extract a given file and to indicate the format of the external file attributes.

See section 4.4.3.2 of APPNOTE.TXT for version details.

Defined in:

Constant Summary

DEFAULT = new(0, 0)

Default version made by, if unspecified.

NEEDED = new(2, 0)

Version needed to extract this entry (4.4.3.2).

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(major : Int32, minor : Int32, compat : Int32 = 0) #

Create a version identifier from a major number, minor number, and optional compatability number.


def self.new(v : UInt16) #

Create a version identifier from a major number, minor number, and optional compatability number.


Instance Method Detail

def to_io(io) #

Write version as 16-bit, little-endian integer and return number of bytes written.


def to_s(io) #

Write version as string.