UNPKG

jspurefix

Version:
23 lines 566 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EncodedStatus = void 0; class EncodedStatus { constructor() { this.ptr = 0; } elapsed() { if (this.begin && this.end) { return this.begin.getTime() - this.end.getTime(); } return 0; } reset() { this.ptr = 0; this.bodyLengthPos = 0; this.bodyEndPos = 0; this.begin = null; this.end = null; } } exports.EncodedStatus = EncodedStatus; //# sourceMappingURL=encoder-state.js.map