MCPcopy Create free account
hub / github.com/ZLMediaKit/pymkui / intArrayFromString

Function intArrayFromString

frontend/js/lib/decoder.js:5734–5740  ·  view source on GitHub ↗
(stringy, dontAddNull, length)

Source from the content-addressed store, hash-verified

5732 UnboundTypeError = Module["UnboundTypeError"] = extendError(Error, "UnboundTypeError");
5733 init_emval();
5734 function intArrayFromString(stringy, dontAddNull, length) {
5735 var len = length > 0 ? length : lengthBytesUTF8(stringy) + 1;
5736 var u8array = new Array(len);
5737 var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
5738 if (dontAddNull) u8array.length = numBytesWritten;
5739 return u8array;
5740 }
5741 function checkIncomingModuleAPI() {
5742 ignoredModuleProp("fetchSettings");
5743 }

Callers 3

decoder.jsFile · 0.85
doXHRFunction · 0.85
formatStringFunction · 0.85

Calls 2

lengthBytesUTF8Function · 0.85
stringToUTF8ArrayFunction · 0.85

Tested by

no test coverage detected