MCPcopy
hub / github.com/ShizukuIchi/pdf-editor / parseLoop

Function parseLoop

public/makeTextPDF.js:16777–16789  ·  view source on GitHub ↗
(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

Callers 1

makeTextPDF.jsFile · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected