MCPcopy
hub / github.com/uber/aresdb / UnreadRune

Method UnreadRune

query/expr/scanner.go:405–408  ·  view source on GitHub ↗

UnreadRune pushes the previously read rune back onto the buffer. This is a wrapper function to implement the io.RuneScanner interface.

()

Source from the content-addressed store, hash-verified

403// UnreadRune pushes the previously read rune back onto the buffer.
404// This is a wrapper function to implement the io.RuneScanner interface.
405func (r *reader) UnreadRune() error {
406 r.unread()
407 return nil
408}
409
410// read reads the next rune from the reader.
411func (r *reader) read() (ch rune, pos Pos) {

Callers 4

peekRuneMethod · 0.80
readMethod · 0.80
ScanDelimitedFunction · 0.80
ScanBareIdentFunction · 0.80

Calls 1

unreadMethod · 0.95

Tested by

no test coverage detected