Function
parseLoop
(base64Str, base64StrLength, reverseMap)
Source from the content-addressed store, hash-verified
| 16775 | }; |
| 16776 | |
| 16777 | function parseLoop(base64Str, base64StrLength, reverseMap) { |
| 16778 | var words = []; |
| 16779 | var nBytes = 0; |
| 16780 | for (var i = 0; i < base64StrLength; i++) { |
| 16781 | if (i % 4) { |
| 16782 | var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2); |
| 16783 | var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2); |
| 16784 | words[nBytes >>> 2] |= (bits1 | bits2) << (24 - (nBytes % 4) * 8); |
| 16785 | nBytes++; |
| 16786 | } |
| 16787 | } |
| 16788 | return WordArray.create(words, nBytes); |
| 16789 | } |
| 16790 | }()); |
| 16791 | |
| 16792 | |
Tested by
no test coverage detected