vendor/cryptojs-v3.1.2/components/enc-utf16.js
function (utf16Str) {
            // Shortcut
            var utf16StrLength = utf16Str.length;

            // Convert
            var words = [];
            for (var i = 0; i < utf16StrLength; i++) {
                words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16));
            }

            return WordArray.create(words, utf16StrLength * 2);
        }
function (utf16Str) {
            // Shortcut
            var utf16StrLength = utf16Str.length;

            // Convert
            var words = [];
            for (var i = 0; i < utf16StrLength; i++) {
                words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16));
            }

            return WordArray.create(words, utf16StrLength * 2);
        }
function ( utf16Str ) { // Shortcut var utf16StrLength = utf16Str . length ; // Convert var words = [ ] ; for ( var i = 0 ; i < utf16StrLength ; i ++ ) { words [ i >>> 1 ] |= swapEndian ( utf16Str . charCodeAt ( i ) << ( 16 - ( i % 2 ) * 16 ) ) ; } return WordArray . create ( words , utf16StrLength * 2 ) ; }
Converts a UTF-16 LE string to a word array.

@param {string} utf16Str The UTF-16 LE string.

@return {WordArray} The word array.

@static

@example

var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
Converts a UTF - 16 LE string to a word array .