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

Function binArrayToStr

script-converter.js:536–542  ·  view source on GitHub ↗
(binArray)

Source from the content-addressed store, hash-verified

534}
535
536function binArrayToStr(binArray) {
537 var str = ''
538 for (var i = 0; i < binArray.length; i++) {
539 str += String.fromCharCode(parseInt(binArray[i]))
540 }
541 return str
542}
543// 加 UTF-8
544function utf8ContentType(type) {
545 if (shouldFixCharset && /^(text|application)\/.+/i.test(type) && !/;\s*?charset\s*?=\s*?/i.test(type)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected