IonDecoder.js 694 B

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.IonDecoder = void 0;
  4. const IonDecoderBase_1 = require("./IonDecoderBase");
  5. const Import_1 = require("./Import");
  6. const symbols_1 = require("./symbols");
  7. class IonDecoder extends IonDecoderBase_1.IonDecoderBase {
  8. constructor(reader) {
  9. super(reader);
  10. }
  11. decode(data) {
  12. this.reader.reset(data);
  13. this.symbols = new Import_1.Import(symbols_1.systemSymbolImport, []);
  14. this.validateBVM();
  15. this.readSymbolTable();
  16. return this.val();
  17. }
  18. read() {
  19. return this.val();
  20. }
  21. }
  22. exports.IonDecoder = IonDecoder;
  23. //# sourceMappingURL=IonDecoder.js.map