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

Function arrayBuffer

deps/undici/src/lib/web/fetch/body.js:318–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316 },
317
318 arrayBuffer () {
319 // The arrayBuffer() method steps are to return the result
320 // of running consume body with this and the following step
321 // given a byte sequence bytes: return a new ArrayBuffer
322 // whose contents are bytes.
323 return consumeBody(this, (bytes) => {
324 return new Uint8Array(bytes).buffer
325 }, instance, getInternalState)
326 },
327
328 text () {
329 // The text() method steps are to return the result of running

Callers

nothing calls this directly

Calls 1

consumeBodyFunction · 0.70

Tested by

no test coverage detected