MCPcopy Create free account
hub / github.com/LibPDF-js/core / skipToEOL

Method skipToEOL

src/parser/xref-parser.ts:462–472  ·  view source on GitHub ↗

* Skip to the end of line (but don't consume EOL).

()

Source from the content-addressed store, hash-verified

460 * Skip to the end of line (but don't consume EOL).
461 */
462 private skipToEOL(): void {
463 while (true) {
464 const byte = this.scanner.peek();
465
466 if (byte === -1 || byte === LF || byte === CR) {
467 break;
468 }
469
470 this.scanner.advance();
471 }
472 }
473
474 /**
475 * Skip EOL characters (CR, LF, or CRLF).

Callers 1

parseEntryMethod · 0.95

Calls 2

advanceMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected