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

Method readAngleBracket

src/parser/token-reader.ts:516–528  ·  view source on GitHub ↗
(position: number)

Source from the content-addressed store, hash-verified

514 }
515
516 private readAngleBracket(position: number): StringToken | DelimiterToken {
517 this.scanner.advance(); // Skip first <
518
519 // Check for <<
520 if (this.scanner.peek() === CHAR_ANGLE_BRACKET_OPEN) {
521 this.scanner.advance();
522
523 return { type: "delimiter", value: "<<", position };
524 }
525
526 // Hex string
527 return this.readHexString(position);
528 }
529
530 private readHexString(position: number): StringToken {
531 const bytes: number[] = [];

Callers 1

readTokenMethod · 0.95

Calls 3

readHexStringMethod · 0.95
advanceMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected