Transforms a stream of Uint8Arrays into fixed-size chunks.
Rebuffers variable-sized chunks from the input stream into consistent
chunk sizes. The final chunk may be smaller if there's insufficient data.
Useful for network protocols, file formats, or APIs requiring specific
chunk sizes.
Parameters
a: ReadableStream<Uint8Array<ArrayBufferLike>>
Input ReadableStream with variable-sized Uint8Array chunks
Transforms a stream of Uint8Arrays into fixed-size chunks.
Rebuffers variable-sized chunks from the input stream into consistent chunk sizes. The final chunk may be smaller if there's insufficient data. Useful for network protocols, file formats, or APIs requiring specific chunk sizes.