// 本文件由FirstUI授权予四川政采招投标咨询有限公司(会员ID: 163,营业执照号: 915 101 3 1332 0 0 6 1 93 K)专用,请尊重知识产权,勿私下传播,违者追究法律责任。
|
import mode from './mode.js'
|
|
function QR8bitByte(data) {
|
this.mode = mode.MODE_8BIT_BYTE;
|
this.data = data;
|
}
|
|
QR8bitByte.prototype = {
|
|
getLength : function(buffer) {
|
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);
|
}
|
}
|
};
|
|
export default QR8bitByte;
|