UNPKG

qrcode-generator-ts

Version:

Typescript QR Code generator based on https://github.com/kazuhikoarase/qrcode-generator

27 lines 947 B
"use strict"; 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 InputStream_1 = require('./InputStream'); 'use strict'; var ByteArrayInputStream = (function (_super) { __extends(ByteArrayInputStream, _super); function ByteArrayInputStream(bytes) { _super.call(this); this.bytes = bytes; this.pos = 0; } ByteArrayInputStream.prototype.readByte = function () { if (this.pos < this.bytes.length) { var b = this.bytes[this.pos]; this.pos += 1; return b; } return -1; }; return ByteArrayInputStream; }(InputStream_1.InputStream)); exports.ByteArrayInputStream = ByteArrayInputStream; //# sourceMappingURL=ByteArrayInputStream.js.map