MCPcopy
hub / github.com/CreditTone/hooker / bytesToString

Function bytesToString

js/hook_encryption_algo.js:148–155  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

146}
147//将byte[]转成String的方法
148function bytesToString(arr) {
149 var str = '';
150 arr = new Uint8Array(arr);
151 for (var i in arr) {
152 str += String.fromCharCode(arr[i]);
153 }
154 return str;
155}
156function bytesToBase64(e) {
157 var r, a, c, h, o, t;
158 for (c = e.length, a = 0, r = ''; a < c;) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected