* 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)
| 3115 | * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array. |
| 3116 | */ |
| 3117 | function 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. |
no outgoing calls
no test coverage detected