mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-07 00:02:53 +08:00
* 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
35 lines
1.2 KiB
TypeScript
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; |