MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / newBufScanner

Function newBufScanner

pkg/filter/ql/lexer.go:394–396  ·  view source on GitHub ↗

newBufScanner returns a new buffered scanner for a reader.

(r io.Reader)

Source from the content-addressed store, hash-verified

392
393// newBufScanner returns a new buffered scanner for a reader.
394func newBufScanner(r io.Reader) *bufScanner {
395 return &bufScanner{s: newScanner(r)}
396}
397
398// scan reads the next token from the scanner.
399func (s *bufScanner) scan() (tok token, pos int, lit string) {

Callers 2

NewParserFunction · 0.85
NewParserWithConfigFunction · 0.85

Calls 1

newScannerFunction · 0.85

Tested by

no test coverage detected