basalt / storage/src / toLimitedReadable
Function: toLimitedReadable()
> toLimitedReadable(source, maxBytes?, expectedLength?): Readable
Defined in: storage/src/streams.ts:77
Normalizes any StreamSource into one Node Readable that enforces maxBytes — and, when given, an exact expectedLength — as the bytes flow. Every driver receives this: a single shape, and limits none of them can forget to apply.
Parameters
source
maxBytes?
number
expectedLength?
number
Returns
Readable