Throws when input is bigger than maxInputBytes, before a decoder has touched it.
maxInputBytes
import { assertInputSize } from '@datamoc/mwg/audio';declare const bytes: Uint8Array;assertInputSize(bytes, { maxInputBytes: 1_000_000 }, 'tune.nsf'); Copy
import { assertInputSize } from '@datamoc/mwg/audio';declare const bytes: Uint8Array;assertInputSize(bytes, { maxInputBytes: 1_000_000 }, 'tune.nsf');
Throws when input is bigger than
maxInputBytes, before a decoder has touched it.