$23 GRAYBYTE WORDPRESS FILE MANAGER $64

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/node_modules/npm/node_modules/qrcode-terminal/vendor/QRCode/

HOME
Current File : /lib/node_modules/npm/node_modules/qrcode-terminal/vendor/QRCode//QRPolynomial.js
var QRMath = require('./QRMath');

function QRPolynomial(num, shift) {
	if (num.length === undefined) {
		throw new Error(num.length + "/" + shift);
	}

	var offset = 0;

	while (offset < num.length && num[offset] === 0) {
		offset++;
	}

	this.num = new Array(num.length - offset + shift);
	for (var i = 0; i < num.length - offset; i++) {
		this.num[i] = num[i + offset];
	}
}

QRPolynomial.prototype = {

	get : function(index) {
		return this.num[index];
	},
	
	getLength : function() {
		return this.num.length;
	},
	
	multiply : function(e) {
	
		var num = new Array(this.getLength() + e.getLength() - 1);
	
		for (var i = 0; i < this.getLength(); i++) {
			for (var j = 0; j < e.getLength(); j++) {
				num[i + j] ^= QRMath.gexp(QRMath.glog(this.get(i) ) + QRMath.glog(e.get(j) ) );
			}
		}
	
		return new QRPolynomial(num, 0);
	},
	
	mod : function(e) {
	
		if (this.getLength() - e.getLength() < 0) {
			return this;
		}
	
		var ratio = QRMath.glog(this.get(0) ) - QRMath.glog(e.get(0) );
	
		var num = new Array(this.getLength() );
		
		for (var i = 0; i < this.getLength(); i++) {
			num[i] = this.get(i);
		}
		
		for (var x = 0; x < e.getLength(); x++) {
			num[x] ^= QRMath.gexp(QRMath.glog(e.get(x) ) + ratio);
		}
	
		// recursive call
		return new QRPolynomial(num, 0).mod(e);
	}
};

module.exports = QRPolynomial;

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 8.02 AM
root / root
0755
QR8bitByte.js
0.373 KB
10 Mar 2021 9.36 PM
root / root
0644
QRBitBuffer.js
0.686 KB
10 Mar 2021 9.36 PM
root / root
0644
QRErrorCorrectLevel.js
0.053 KB
10 Mar 2021 9.36 PM
root / root
0644
QRMaskPattern.js
0.153 KB
10 Mar 2021 9.36 PM
root / root
0644
QRMath.js
0.657 KB
10 Mar 2021 9.36 PM
root / root
0644
QRMode.js
0.146 KB
10 Mar 2021 9.36 PM
root / root
0644
QRPolynomial.js
1.301 KB
10 Mar 2021 9.36 PM
root / root
0644
QRRSBlock.js
5.426 KB
10 Mar 2021 9.36 PM
root / root
0644
QRUtil.js
8.029 KB
10 Mar 2021 9.36 PM
root / root
0644
index.js
10.416 KB
10 Mar 2021 9.36 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF