MCPcopy
hub / github.com/JakeChampion/fetch / readArrayBufferAsText

Function readArrayBufferAsText

fetch.js:202–210  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

200}
201
202function readArrayBufferAsText(buf) {
203 var view = new Uint8Array(buf)
204 var chars = new Array(view.length)
205
206 for (var i = 0; i < view.length; i++) {
207 chars[i] = String.fromCharCode(view[i])
208 }
209 return chars.join('')
210}
211
212function bufferClone(buf) {
213 if (buf.slice) {

Callers 1

BodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…