MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / strToArray

Function strToArray

script-converter.js:528–534  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

526 $.done(result)
527 })
528function strToArray(str) {
529 var ret = new Uint8Array(str.length)
530 for (var i = 0; i < str.length; i++) {
531 ret[i] = str.charCodeAt(i)
532 }
533 return ret
534}
535
536function binArrayToStr(binArray) {
537 var str = ''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected