404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.133.151.58: ~ $
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;

Filemanager

Name Type Size Permission Actions
QR8bitByte.js File 382 B 0644
QRBitBuffer.js File 702 B 0644
QRErrorCorrectLevel.js File 54 B 0644
QRMaskPattern.js File 157 B 0644
QRMath.js File 673 B 0644
QRMode.js File 149 B 0644
QRPolynomial.js File 1.3 KB 0644
QRRSBlock.js File 5.43 KB 0644
QRUtil.js File 8.03 KB 0644
index.js File 10.42 KB 0644