MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / readArrayBufferAsText

Function readArrayBufferAsText

libraries/p5.js:7689–7697  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

7687 }
7688
7689 function readArrayBufferAsText(buf) {
7690 var view = new Uint8Array(buf)
7691 var chars = new Array(view.length)
7692
7693 for (var i = 0; i < view.length; i++) {
7694 chars[i] = String.fromCharCode(view[i])
7695 }
7696 return chars.join('')
7697 }
7698
7699 function bufferClone(buf) {
7700 if (buf.slice) {

Callers 1

BodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected