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

Method skipWhitespace

src/parser/indirect-object-parser.ts:255–268  ·  view source on GitHub ↗

* Skip whitespace characters.

()

Source from the content-addressed store, hash-verified

253 * Skip whitespace characters.
254 */
255 private skipWhitespace(): void {
256 while (true) {
257 const byte = this.scanner.peek();
258
259 if (byte === -1) {
260 break;
261 }
262 if (isWhitespace(byte)) {
263 this.scanner.advance();
264 } else {
265 break;
266 }
267 }
268 }
269
270 /**
271 * Skip the EOL after "stream" keyword.

Callers 1

expectKeywordMethod · 0.95

Calls 3

isWhitespaceFunction · 0.90
advanceMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected