qrcode-generator-ts
Version:
Typescript QR Code generator based on https://github.com/kazuhikoarase/qrcode-generator
24 lines • 893 B
JavaScript
;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var OutputStream_1 = require('./OutputStream');
;
var ByteArrayOutputStream = (function (_super) {
__extends(ByteArrayOutputStream, _super);
function ByteArrayOutputStream() {
_super.call(this);
this.bytes = [];
}
ByteArrayOutputStream.prototype.writeByte = function (b) {
this.bytes.push(b);
};
ByteArrayOutputStream.prototype.toByteArray = function () {
return this.bytes;
};
return ByteArrayOutputStream;
}(OutputStream_1.OutputStream));
exports.ByteArrayOutputStream = ByteArrayOutputStream;
//# sourceMappingURL=ByteArrayOutputStream.js.map