11 Star 90 Fork 18

Cocos/cocos-engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ZipUtils.d.ts 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
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;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cocos/cocos-engine.git
git@gitee.com:cocos/cocos-engine.git
cocos
cocos-engine
cocos-engine
develop

搜索帮助