Files
cocos-engine/external/compression/ZipUtils.d.ts
江战 a933edb94f Merge TiledMap from 2.x (#7610)
* Save all

* fix uv

* fix object groups

* fix tintcolor

* add method modifier

* tslint

* replace ccCOlor

* add import warning

* rename

* add comments

* add comments

* update zlib

* Save

* pixel offset

* update tests/general/sealed-global-variables.json

* exclude from cc

* remove _walkGen

* update setScale & setRotationFromEuler
2020-10-30 10:35:52 +08:00

35 lines
1.2 KiB
TypeScript

import b64 from "./base64";
import gzip from "./gzip";
export declare module codec {
const name = "Jacob__Codec";
export const Base64: typeof b64;
export const GZip: typeof gzip;
/**
* Unpack a gzipped byte array
* @param {Array} input Byte array
* @returns {String} Unpacked byte string
*/
export function unzip(args: string | number[]): string;
/**
* Unpack a gzipped byte string encoded as base64
* @param {String} input Byte string encoded as base64
* @returns {String} Unpacked byte string
*/
export function unzipBase64(arg: string): string;
/**
* Unpack a gzipped byte string encoded as base64
* @param {String} input Byte string encoded as base64
* @param {Number} bytes Bytes per array item
* @returns {Array} Unpacked byte array
*/
export function unzipBase64AsArray(input: string, bytes?: number): number[];
/**
* Unpack a gzipped byte array
* @param {Array} input Byte array
* @param {Number} bytes Bytes per array item
* @returns {Array} Unpacked byte array
*/
export function unzipAsArray(input: number[], bytes?: number): number[];
}
export default codec;