Inflates a raw DEFLATE stream while counting the output, so a few kilobytes that expand into gigabytes are refused after maxOutputBytes, not after they have filled memory.
maxOutputBytes
import { inflateBounded } from '@datamoc/mwg/audio';declare const packed: Uint8Array;const bytes = await inflateBounded(packed, { maxOutputBytes: 1_000_000 }); Copy
import { inflateBounded } from '@datamoc/mwg/audio';declare const packed: Uint8Array;const bytes = await inflateBounded(packed, { maxOutputBytes: 1_000_000 });
Inflates a raw DEFLATE stream while counting the output, so a few kilobytes that expand into gigabytes are refused after
maxOutputBytes, not after they have filled memory.