MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / stringToArrayLike

Function stringToArrayLike

static/plugins/jszip/jszip.js:3117–3122  ·  view source on GitHub ↗

* Fill in an array with a string. * @param {String} str the string to use. * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to fill in (will be mutated). * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array.

(str, array)

Source from the content-addressed store, hash-verified

3115 * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array.
3116 */
3117function stringToArrayLike(str, array) {
3118 for (var i = 0; i < str.length; ++i) {
3119 array[i] = str.charCodeAt(i) & 0xFF;
3120 }
3121 return array;
3122}
3123
3124/**
3125 * An helper for the function arrayLikeToString.

Callers 2

string2binaryFunction · 0.85
jszip.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected