Skip to main content
Module

x/lz4/mod.ts>decompress

🗜 lz4 wasm module for deno
Very Popular
Go to Latest
function decompress
import { decompress } from "https://deno.land/x/lz4@v0.1.2/mod.ts";

Decompress a byte array using lz4.

import { decompress } from "https://deno.land/x/lz4/mod.ts";
const compressed = Uint8Array.from([ 31, 88, 1, 0, 44, 0 ]);
console.log(compressed.length);             // 6 Bytes
console.log(decompress(compressed).length); // 64 Bytes

Parameters

input: Uint8Array

Input data.

Returns

Uint8Array