* @param {AsyncIterable|ReadableStream|Readable} stream * @returns {Promise }
(stream)
| 56 | * @returns {Promise<Uint8Array>} |
| 57 | */ |
| 58 | async function bytes(stream) { |
| 59 | return new Uint8Array(await arrayBuffer(stream)); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * @param {AsyncIterable|ReadableStream|Readable} stream |
nothing calls this directly
no test coverage detected