Skip to main content
Module

x/aleph/deps.ts>brotli.decompress

The Full-stack Framework in Deno.
Very Popular
Go to Latest
function brotli.decompress
import { brotli } from "https://deno.land/x/aleph@v0.3.0-alpha.2/deps.ts";
const { decompress } = brotli;

Decompress a byte array.

import { decompress } from "https://deno.land/x/brotli/mod.ts";
const compressed = Uint8Array.from([ 27, 63, 0, 0, 36, 176, 226, 153, 64, 18 ]);
console.log(compressed.length);             // 10 Bytes
console.log(decompress(compressed).length); // 64 Bytes

Parameters

input: Uint8Array

Input data.

optional
bufferSize: number = [UNSUPPORTED]

Read buffer size

Returns

Uint8Array