X7ROOT File Manager
Current Path:
/usr/lib/node_modules/npm/node_modules/qrcode-terminal/vendor/QRCode
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
qrcode-terminal
/
vendor
/
QRCode
/
ðŸ“
..
📄
QR8bitByte.js
(382 B)
📄
QRBitBuffer.js
(702 B)
📄
QRErrorCorrectLevel.js
(54 B)
📄
QRMaskPattern.js
(157 B)
📄
QRMath.js
(673 B)
📄
QRMode.js
(149 B)
📄
QRPolynomial.js
(1.3 KB)
📄
QRRSBlock.js
(5.43 KB)
📄
QRUtil.js
(8.03 KB)
📄
index.js
(10.42 KB)
Editing: QRBitBuffer.js
function QRBitBuffer() { this.buffer = []; this.length = 0; } QRBitBuffer.prototype = { get : function(index) { var bufIndex = Math.floor(index / 8); return ( (this.buffer[bufIndex] >>> (7 - index % 8) ) & 1) == 1; }, put : function(num, length) { for (var i = 0; i < length; i++) { this.putBit( ( (num >>> (length - i - 1) ) & 1) == 1); } }, getLengthInBits : function() { return this.length; }, putBit : function(bit) { var bufIndex = Math.floor(this.length / 8); if (this.buffer.length <= bufIndex) { this.buffer.push(0); } if (bit) { this.buffer[bufIndex] |= (0x80 >>> (this.length % 8) ); } this.length++; } }; module.exports = QRBitBuffer;
Upload File
Create Folder