(data: string, format: string)
| 23 | * @returns Decoded and decompressed data |
| 24 | */ |
| 25 | export function decompress(data: string, format: string): Uint32Array { |
| 26 | if (typeof inflateFunction === "function") { |
| 27 | return inflateFunction(data, format); |
| 28 | } else { |
| 29 | throw new Error( |
| 30 | "No inflate function set — GZIP/ZLIB decompression not supported!", |
| 31 | ); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Decode a CSV encoded array into a binary array |