Files
cocos-engine/external/compression/gzip.d.ts
PP 509d73b27d merge branch v3.8.0-aot (#15421)
* PR1: add explicit function return type (#15311)

* PR4: add explicit function return type (#15314)

* [ci skip][AUTO]: Automated code generating update: 8843bfe54c  (#15314) (#15357)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>

* add function return type

* fix version checking

* fix return type

---------

Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-06-13 18:08:45 +08:00

54 lines
1.3 KiB
TypeScript

/**
* 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;