* 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)
| 3379 | * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array. |
| 3380 | */ |
| 3381 | function stringToArrayLike(str, array) { |
| 3382 | for (var i = 0; i < str.length; ++i) { |
| 3383 | array[i] = str.charCodeAt(i) & 0xFF; |
| 3384 | } |
| 3385 | return array; |
| 3386 | } |
| 3387 | |
| 3388 | /** |
| 3389 | * An helper for the function arrayLikeToString. |
no outgoing calls
no test coverage detected