MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / peekN

Method peekN

pkg/sql/scanner/scan.go:505–511  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

503}
504
505func (s *Scanner) peekN(n int) int {
506 pos := s.pos + n
507 if pos >= len(s.in) {
508 return eof
509 }
510 return int(s.in[pos])
511}
512
513func (s *Scanner) next() int {
514 ch := s.peek()

Callers 1

ScanMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected