PHP 8.2.30
Preview: QR8bitByte.js Size: 382 B
/proc/thread-self/root/lib/node_modules/npm/node_modules/qrcode-terminal/vendor/QRCode/QR8bitByte.js

var QRMode = require('./QRMode');

function QR8bitByte(data) {
	this.mode = QRMode.MODE_8BIT_BYTE;
	this.data = data;
}

QR8bitByte.prototype = {

	getLength : function() {
		return this.data.length;
	},
	
	write : function(buffer) {
		for (var i = 0; i < this.data.length; i++) {
			// not JIS ...
			buffer.put(this.data.charCodeAt(i), 8);
		}
	}
};

module.exports = QR8bitByte;

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
10.42 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
382 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
702 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
54 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
157 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
673 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
149 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.30 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
5.43 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
8.03 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).