DecompressionStream

interface

interface DecompressionStream extends GenericTransformStream

An API for decompressing a stream of data.

Example

const input = await Ende.open("./file.txt.gz");
const output = await Ende.create("./file.txt");

await input.readable
  .pipeThrough(new DecompressionStream("gzip"))
  .pipeTo(output.writable);

variable

var DecompressionStream: { … }

An API for decompressing a stream of data.

Example

const input = await Ende.open("./file.txt.gz");
const output = await Ende.create("./file.txt");

await input.readable
  .pipeThrough(new DecompressionStream("gzip"))
  .pipeTo(output.writable);

Constructors

constructor

new DecompressionStream(format: CompressionFormat): DecompressionStream

Creates a new DecompressionStream object which decompresses a stream of data.

Throws a TypeError if the format passed to the constructor is not supported.

Properties

readable

readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>

writable

readonly writable: WritableStream<BufferSource>

prototype

readonly prototype: DecompressionStream