kinetex - v1.0.0-rc.1
    Preparing search index...

    Function collectStream

    • Collect a ReadableStream to a Uint8Array while tracking progress.

      Parameters

      • stream: ReadableStream<Uint8Array<ArrayBufferLike>>

        The ReadableStream to collect.

      • total: number | null

        Total bytes (null for unknown).

      • options: ProgressOptions = {}

        Progress options including optional AbortSignal.

      Returns Promise<CollectStreamResult>

      The concatenated data buffer and the underlying tracker.

      Note: If the stream is large, consider using streamWithProgress for incremental processing instead of buffering the entire stream in memory.