Function createChunkedReader

  • Parameters

    • stream: ReadableStream<Uint8Array>
    • chunkSize: number

    Returns {
        ended: (() => boolean);
        read: (() => Promise<Uint8Array | null>);
    }

    • ended: (() => boolean)
        • (): boolean
        • Returns boolean

    • read: (() => Promise<Uint8Array | null>)
        • (): Promise<Uint8Array | null>
        • Returns Promise<Uint8Array | null>