/var/www/greso.tech/server/nsm/node_modules/pdf-lib/es/core/parser
NameSizeModeActions
BaseParser.d.ts5690644editdlrm
BaseParser.d.ts.map5690644editdlrm
BaseParser.js40600644editdlrm
BaseParser.js.map34550644editdlrm
ByteStream.d.ts7950644editdlrm
ByteStream.d.ts.map8240644editdlrm
ByteStream.js20400644editdlrm
ByteStream.js.map19070644editdlrm
PDFObjectParser.d.ts14510644editdlrm
PDFObjectParser.d.ts.map10130644editdlrm
PDFObjectParser.js97750644editdlrm
PDFObjectParser.js.map81520644editdlrm
PDFObjectStreamParser.d.ts6700644editdlrm
PDFObjectStreamParser.d.ts.map5570644editdlrm
PDFObjectStreamParser.js34720644editdlrm
PDFObjectStreamParser.js.map21680644editdlrm
PDFParser.d.ts22740644editdlrm
PDFParser.d.ts.map8370644editdlrm
PDFParser.js159170644editdlrm
PDFParser.js.map98700644editdlrm
PDFXRefStreamParser.d.ts6820644editdlrm
PDFXRefStreamParser.d.ts.map6860644editdlrm
PDFXRefStreamParser.js40710644editdlrm
PDFXRefStreamParser.js.map38730644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/pdf-lib/es/core/parser/ByteStream.js (2040B)
import { NextByteAssertionError } from "../errors"; import { decodePDFRawStream } from "../streams/decode"; import CharCodes from "../syntax/CharCodes"; // TODO: See how line/col tracking affects performance var ByteStream = /** @class */ (function () { function ByteStream(bytes) { this.idx = 0; this.line = 0; this.column = 0; this.bytes = bytes; this.length = this.bytes.length; } ByteStream.prototype.moveTo = function (offset) { this.idx = offset; }; ByteStream.prototype.next = function () { var byte = this.bytes[this.idx++]; if (byte === CharCodes.Newline) { this.line += 1; this.column = 0; } else { this.column += 1; } return byte; }; ByteStream.prototype.assertNext = function (expected) { if (this.peek() !== expected) { throw new NextByteAssertionError(this.position(), expected, this.peek()); } return this.next(); }; ByteStream.prototype.peek = function () { return this.bytes[this.idx]; }; ByteStream.prototype.peekAhead = function (steps) { return this.bytes[this.idx + steps]; }; ByteStream.prototype.peekAt = function (offset) { return this.bytes[offset]; }; ByteStream.prototype.done = function () { return this.idx >= this.length; }; ByteStream.prototype.offset = function () { return this.idx; }; ByteStream.prototype.slice = function (start, end) { return this.bytes.slice(start, end); }; ByteStream.prototype.position = function () { return { line: this.line, column: this.column, offset: this.idx }; }; ByteStream.of = function (bytes) { return new ByteStream(bytes); }; ByteStream.fromPDFRawStream = function (rawStream) { return ByteStream.of(decodePDFRawStream(rawStream).decode()); }; return ByteStream; }()); export default ByteStream; //# sourceMappingURL=ByteStream.js.map