@cloudpss/ubjson
Version:
Opinionated UBJSON encoder/decoder for CloudPSS.
13 lines • 693 B
TypeScript
/** 解码 */
export declare function jsDecode(bytes: Uint8Array, begin: number, end: number): string;
/** 解码 Ascii */
export declare function longStringInJS(buf: Uint8Array, begin: number, length: number): string | undefined;
/** 解码 Ascii */
export declare function shortStringInJS(buf: Uint8Array, begin: number, length: number): string | undefined;
/** 解码 */
export declare function nativeDecode(data: Uint8Array, begin: number, end: number): string;
/** 字符串解码,无缓存 */
export declare function decode(data: Uint8Array, begin: number, end: number): string;
/** 重设环境 */
export declare function resetEnv(): void;
//# sourceMappingURL=string-decoder.d.ts.map