MCPcopy
hub / github.com/google/tamperchrome / arrayBufferToString

Function arrayBufferToString

v1/app/background.js:42–49  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

40};
41
42var arrayBufferToString = function(buffer) {
43 var str = '';
44 var uArrayVal = new Uint8Array(buffer);
45 for(var s = 0; s < uArrayVal.length; s++) {
46 str += String.fromCharCode(uArrayVal[s]);
47 }
48 return str;
49};
50
51function parseQuery(qstr)
52{

Callers 2

readFromSocketFunction · 0.85
readChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected