gunzip_member.js
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
goog.provide('Zlib.GunzipMember');
goog.scope(function() {
/**
* @constructor
*/
Zlib.GunzipMember = function() {
/** @type {number} signature first byte. */
this.id1;
/** @type {number} signature second byte. */
this.id2;
/** @type {number} compression method. */
this.cm;
/** @type {number} flags. */
this.flg;
/** @type {Date} modification time. */
this.mtime;
/** @type {number} extra flags. */
this.xfl;
/** @type {number} operating system number. */
this.os;
/** @type {number} CRC-16 value for FHCRC flag. */
this.crc16;
/** @type {number} extra length. */
this.xlen;
/** @type {number} CRC-32 value for verification. */
this.crc32;
/** @type {number} input size modulo 32 value. */
this.isize;
/** @type {string} filename. */
this.name;
/** @type {string} comment. */
this.comment;
/** @type {!(Uint8Array|Array.<number>)} */
this.data;
};
Zlib.GunzipMember.prototype.getName = function() {
return this.name;
};
Zlib.GunzipMember.prototype.getData = function() {
return this.data;
};
Zlib.GunzipMember.prototype.getMtime = function() {
return this.mtime;
}
});