1var QRMode = require('./QRMode');
2
3function QR8bitByte(data) {
4	this.mode = QRMode.MODE_8BIT_BYTE;
5	this.data = data;
6}
7
8QR8bitByte.prototype = {
9
10	getLength : function() {
11		return this.data.length;
12	},
13
14	write : function(buffer) {
15		for (var i = 0; i < this.data.length; i++) {
16			// not JIS ...
17			buffer.put(this.data.charCodeAt(i), 8);
18		}
19	}
20};
21
22module.exports = QR8bitByte;
23