code: function stringToArrayLike(str, array) {
      for (var i = 0; i < str.length; ++i) {
          array[i] = str.charCodeAt(i) & 0xFF;
      }
      return array;
  }
docs: 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.