MCPcopy Index your code
hub / github.com/nodejs/node / bytes

Method bytes

deps/undici/src/lib/api/readable.js:205–207  ·  view source on GitHub ↗

* Consumes and returns the body as an Uint8Array. * * @see https://fetch.spec.whatwg.org/#dom-body-bytes * @returns {Promise }

()

Source from the content-addressed store, hash-verified

203 * @returns {Promise<Uint8Array>}
204 */
205 bytes () {
206 return consume(this, 'bytes')
207 }
208
209 /**
210 * Consumes and returns the body as an ArrayBuffer.

Callers

nothing calls this directly

Calls 1

consumeFunction · 0.70

Tested by

no test coverage detected