forked from cocos/cocos-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgzip.d.ts
54 lines (53 loc) · 1.28 KB
/
gzip.d.ts
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
52
53
54
/**
* See cc.Codec.GZip.gunzip.
* @param {Array | String} data The bytestream to decompress
* Constructor
*/
declare class HufNode {
b0: number;
b1: number;
jump: any;
jumppos: number;
}
export declare class GZip {
constructor(data: string | number[]);
/**
* Unzips the gzipped data of the 'data' argument.
* @param string The bytestream to decompress. Either an array of Integers between 0 and 255, or a String.
* @return {String}
*/
static gunzip(string: string | number[]): string;
static HufNode: typeof HufNode;
/**
* @constant
* @type Number
*/
static LITERALS: number;
/**
* @constant
* @type Number
*/
static NAMEMAX: number;
static bitReverse: number[];
/**
* gunzip
* @return {Array}
*/
gunzip(): string[][];
readByte_array(): number;
readByte_string(): number;
byteAlign(): void;
readBit(): number;
readBits(a: number): number;
flushBuffer(): void;
addBuffer(a: number): void;
IsPat(): number;
Rec(): number;
CreateTree(currentTree: any, numval: any, lengths: any, show: any): number;
DecodeValue(currentTree: any): any;
DeflateLoop(): number;
unzipFile(name: string): string;
nextFile(): void;
skipdir(): number;
}
export default GZip;