MCPcopy Create free account
hub / github.com/nodejs/node / arrayBuffer

Function arrayBuffer

lib/stream/consumers.js:41–44  ·  view source on GitHub ↗

* @param {AsyncIterable|ReadableStream|Readable} stream * @returns {Promise }

(stream)

Source from the content-addressed store, hash-verified

39 * @returns {Promise<ArrayBuffer>}
40 */
41async function arrayBuffer(stream) {
42 const ret = await blob(stream);
43 return ret.arrayBuffer();
44}
45
46/**
47 * @param {AsyncIterable|ReadableStream|Readable} stream

Callers 2

bufferFunction · 0.70
bytesFunction · 0.70

Calls 2

blobFunction · 0.70
arrayBufferMethod · 0.65

Tested by

no test coverage detected