UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

42 lines (41 loc) 2.12 kB
/** * Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format * @param data The data to decompress * @param dict - The dictionary used to compress the original data. If no dictionary was used during * compression, this option has no effect. Supplying the wrong dictionary during decompression * usually yields corrupt output or causes an invalid distance error. * @returns The decompressed version of the data */ export declare function decompressSync(data: Uint8Array, dict?: Uint8Array): Uint8Array; /** * Expands GZIP data * @param data The data to decompress * @param dict - The dictionary used to compress the original data. If no dictionary was used during * compression, this option has no effect. Supplying the wrong dictionary during decompression * usually yields corrupt output or causes an invalid distance error. * @returns The decompressed version of the data */ export declare function gunzipSync(data: Uint8Array, dict?: Uint8Array): Uint8Array; /** * Expands DEFLATE data with no wrapper * @param data The data to decompress * @param dict - The dictionary used to compress the original data. If no dictionary was used during * compression, this option has no effect. Supplying the wrong dictionary during decompression * usually yields corrupt output or causes an invalid distance error. * @returns The decompressed version of the data */ export declare function inflateSync(data: Uint8Array, dict?: Uint8Array): Uint8Array; /** * Expands Zlib data * @param data The data to decompress * @param dict - The dictionary used to compress the original data. If no dictionary was used during * compression, this option has no effect. Supplying the wrong dictionary during decompression * usually yields corrupt output or causes an invalid distance error. * @returns The decompressed version of the data */ export declare function unzlibSync(data: Uint8Array, dict?: Uint8Array): Uint8Array; /** An error generated within this library */ export interface FlateError extends Error { /** The code associated with this error */ code: number; }