Function readableStreamToArrayBuffer

  • Consume all data from a ReadableStream until it closes or errors.

    Concatenate the chunks into a single ArrayBuffer.

    Each chunk must be a TypedArray or an ArrayBuffer. If you need to support chunks of different types, consider readableStreamToBlob

    Returns

    A promise that resolves with the concatenated chunks or the concatenated chunks as an ArrayBuffer.

    Parameters

    Returns Promise<ArrayBuffer> | ArrayBuffer

  • Consume all data from a ReadableStream until it closes or errors.

    Concatenate the chunks into a single ArrayBuffer.

    Each chunk must be a TypedArray or an ArrayBuffer. If you need to support chunks of different types, consider readableStreamToBlob

    Returns

    A promise that resolves with the concatenated chunks or the concatenated chunks as an ArrayBuffer.

    Parameters

    Returns Promise<ArrayBuffer> | ArrayBuffer

Generated using TypeDoc