* Collect bytes as ArrayBuffer from an async or sync source. * @param {AsyncIterable |Iterable } source * @param {{ signal?: AbortSignal, limit?: number }} [options] * @returns {Promise }
(source, options = kNullPrototype)
| 309 | * @returns {Promise<ArrayBuffer>} |
| 310 | */ |
| 311 | async function arrayBuffer(source, options = kNullPrototype) { |
| 312 | validateConsumerOptions(options); |
| 313 | const chunks = await collectAsync(source, options.signal, options.limit); |
| 314 | return toArrayBuffer(concatBytes(chunks)); |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * Collect all chunks as an array from an async or sync source. |
nothing calls this directly
no test coverage detected
searching dependent graphs…