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

Function allUint8Array

lib/internal/streams/iter/utils.js:115–121  ·  view source on GitHub ↗

* Check if all chunks in an array are already Uint8Array (no strings). * Short-circuits on the first string found. * @param {Array } chunks * @returns {boolean}

(chunks)

Source from the content-addressed store, hash-verified

113 * @returns {boolean}
114 */
115function allUint8Array(chunks) {
116 // Ok, well, kind of. This is more a check for "no strings"...
117 for (let i = 0; i < chunks.length; i++) {
118 if (typeof chunks[i] === 'string') return false;
119 }
120 return true;
121}
122
123/**
124 * Concatenate multiple Uint8Arrays into a single Uint8Array.

Callers 1

convertChunksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…