function toBufferSource
toBufferSource(iter: AsyncIterable<StandardData>): AsyncIterable<BufferSource>

For transformers that need BufferSource as input, this will convert the type of the output; otherwise identical to toBytes.

This is needed for working directly with CompressionStream and DecompressionStream.

Parameters

iter: AsyncIterable<StandardData>

The iterable.

Return Type

AsyncIterable<BufferSource>

Usage

import { toBufferSource } from ".";