MCPcopy Create free account
hub / github.com/antimatter15/ocrad.js / intArrayToString

Function intArrayToString

ocrad.js:1281–1292  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

1279Module["intArrayFromString"] = intArrayFromString;
1280
1281function intArrayToString(array) {
1282 var ret = [];
1283 for (var i = 0; i < array.length; i++) {
1284 var chr = array[i];
1285 if (chr > 0xFF) {
1286 assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') at offset ' + i + ' not in 0x00-0xFF.');
1287 chr &= 0xFF;
1288 }
1289 ret.push(String.fromCharCode(chr));
1290 }
1291 return ret.join('');
1292}
1293Module["intArrayToString"] = intArrayToString;
1294
1295function writeStringToMemory(string, buffer, dontAddNull) {

Callers

nothing calls this directly

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected